]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-ab8500.c: change msleep() to usleep_range()
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 8 Dec 2011 04:42:30 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 9 Dec 2011 04:57:53 +0000 (15:57 +1100)
commit14348ffbdcfc99a85d833bbde015ba69e74d13b0
tree8fd698dec97b34f5dc15ffbb06ae2eab2100a890
parentd32e7cfca38e66f7b0b001e076c6868dfdbdd34e
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>
drivers/rtc/rtc-ab8500.c