summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorShivasharan S <shivasharan.srikanteshwara@broadcom.com>2018-10-16 23:37:41 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-28 18:26:05 +0100
commit2eb7e4dd58347cb6ea77238ad8dc289e1c50816d (patch)
tree1b0923713d5012606a3e757cc00158ee10a68a4f /tools/perf/scripts/python/netdev-times.py
parentb5e72bab286eb9ecb1961570022b377dfbfc53c6 (diff)
scsi: megaraid_sas: Fix msleep granularity
[ Upstream commit 9155cf30a3c4ef97e225d6daddf9bd4b173267e8 ] In megasas_transition_to_ready() driver waits 180seconds for controller to change FW state. Here we are calling msleep(1) in a loop for this. As explained in timers-howto.txt, msleep(1) will actually sleep longer than 1ms. If a faulty controller is connected, we will end up waiting for much more than 180 seconds causing unnecessary delays during load. Change the granularity of msleep() call from 1ms to 1000ms. Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions