]> 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>
Tue, 13 Dec 2011 06:43:24 +0000 (17:43 +1100)
commitec20fcf3fd5a6ff7c7446fdde2786da861e3bb2b
treee9254a0f86d536e8bc68e85bdebeaaa0b539a2ac
parent09114b3faa1862d9c8f53073c072f52856be142e
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