]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-ab8500.c: change msleep() to usleep_range()
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 10 Jan 2012 23:10:41 +0000 (15:10 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Jan 2012 00:30:52 +0000 (16:30 -0800)
commit42f50918677b5e0dc1bcc45cd1da99448d079463
tree83b34597c52f4bb13f9a7341321e5cc7cedf5680
parentba086321169aa81a1504f416fdd2da88ec9f176d
drivers/rtc/rtc-ab8500.c: change msleep() to usleep_range()

The resolution of msleep is related to HZ, so with HZ set to 100 any
msleep of less than 10ms will become ~10ms.  This is not what we want.
Use the hrtimer-based usleep_range() and allow for some slack in the
non-critical path so we have more control of what is happening here.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Jonas Aaberg <jonas.aberg@stericsson.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-ab8500.c