summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorakshatzen <akshatzen@google.com>2020-11-02 22:25:27 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2020-11-04 22:55:38 -0500
commit48cd6b38eb4f2874f091c4776ea1c26e7e4f967e (patch)
tree45dc0bd68e8e0b5ea369949676719bfd6b1c5fec /tools/perf/scripts/python/exported-sql-viewer.py
parent4a2efd4b89fcaa6e9a7b4ce49a441afaacba00ea (diff)
downloadlinux-48cd6b38eb4f2874f091c4776ea1c26e7e4f967e.tar.gz
linux-48cd6b38eb4f2874f091c4776ea1c26e7e4f967e.zip
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/20201102165528.26510-4-Viswas.G@microchip.com.com Acked-by: Jack Wang <jinpu.wang@cloud.ionos.com> Signed-off-by: akshatzen <akshatzen@google.com> Signed-off-by: Viswas G <Viswas.G@microchip.com> Signed-off-by: Ruksar Devadi <Ruksar.devadi@microchip.com> Signed-off-by: Radha Ramachandran <radha@google.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions