diff options
| author | akshatzen <[email protected]> | 2020-11-02 22:25:27 +0530 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-11-04 22:55:38 -0500 |
| commit | 48cd6b38eb4f2874f091c4776ea1c26e7e4f967e (patch) | |
| tree | 45dc0bd68e8e0b5ea369949676719bfd6b1c5fec /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 4a2efd4b89fcaa6e9a7b4ce49a441afaacba00ea (diff) | |
scsi: pm80xx: Avoid busywait in FW ready check
In function check_fw_ready() we busy wait using udelay. The CPU is not
released and we see need_resched failures.
Busy waiting is not necessary since we are in process context and we can
sleep instead. Replace udelay with msleep of 20 ms intervals while waiting
for firmware to become ready.
It has been verified that check_fw_ready is not being used in interrupt
context anywhere, hence it is safe to make this change.
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Jack Wang <[email protected]>
Signed-off-by: akshatzen <[email protected]>
Signed-off-by: Viswas G <[email protected]>
Signed-off-by: Ruksar Devadi <[email protected]>
Signed-off-by: Radha Ramachandran <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions