diff options
author | 2018-01-25 18:45:05 +0800 | |
---|---|---|
committer | 2018-01-25 07:28:31 -0800 | |
commit | b3506c7ed216dd2db1f06c2845da45018e2c508d (patch) | |
tree | cc46253531a7aea4f48ec8ac1b50260ac33ee45d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ata: pata_it821x: Replace mdelay with usleep_range in it821x_firmware_command (diff) | |
download | wireguard-linux-b3506c7ed216dd2db1f06c2845da45018e2c508d.tar.xz wireguard-linux-b3506c7ed216dd2db1f06c2845da45018e2c508d.zip |
ata: pata_pdc2027x: Replace mdelay with msleep
After checking all possible call chains to pdc_adjust_pll and
pdc_detect_pll_input_clock,
my tool finds that these functions are never called in atomic context,
namely never in an interrupt handler or holding a spinlock.
And their caller functions pdc2027x_init_one and pdc2027x_reinit_one
calls pci_enable_device which can sleep, and no spinlock is held when
calling pdc_adjust_pll and pdc_detect_pll_input_clock,
so it proves that pdc_adjust_pll and pdc_detect_pll_input_clock
can call functions which can sleep.
Thus mdelay can be replaced with msleep to avoid busy wait.
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions