diff options
author | Caesar Wang <wxt@rock-chips.com> | 2016-05-03 05:23:50 +0300 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2016-05-17 17:28:33 +0300 |
commit | 2fe5c1b0453c445f8a19e1a53f8297b21c2cba4c (patch) | |
tree | 82c3dd32983051769ba6281d5fea89fde4c65e70 /lib/mpi/mpi-bit.c | |
parent | 678065d5b786763cb9f5d97673409ae32ead2314 (diff) | |
download | linux-2fe5c1b0453c445f8a19e1a53f8297b21c2cba4c.tar.xz |
thermal: rockchip: use the usleep_range instead of udelay
Documentation/timers/timers-howto.txt recommends to use
usleep_range on delays > 10usec.
The usleep_range indeed reduces CPU load, since the udelay will busy wait
for enough loop cycles to achieve the desired delay.
Fixes commit b06c52db39fd ("thermal: rockchip:
handle the power sequence for tsadc controller").
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Suggested-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions