diff options
author | Aniroop Mathur <a.mathur@samsung.com> | 2016-11-26 09:17:26 +0530 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-12-03 08:58:40 +0000 |
commit | 071cf2494361fd856f1a6781f9c554da67e35e3c (patch) | |
tree | 173b553342e17952c5c58dbefe779537608ef07f /arch/arm/mach-ixp4xx | |
parent | 160d95870c8a44480fad49dc09fa4f0cc04e7098 (diff) |
IIO: Change msleep to usleep_range for small msecs
msleep(1~20) may not do what the caller intends, and will often sleep longer.
(~20 ms actual sleep for any value given in the 1~20ms range)
This is not the desired behaviour for many cases like device resume time,
device suspend time, device enable time, data reading time, etc.
Thus, change msleep to usleep_range for precise wakeups.
Signed-off-by: Aniroop Mathur <a.mathur@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'arch/arm/mach-ixp4xx')
0 files changed, 0 insertions, 0 deletions