]> 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>
Fri, 16 Dec 2011 04:50:26 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 20 Dec 2011 07:43:55 +0000 (18:43 +1100)
commit83858539ed2da996b20a440f3af9d16825586201
treed587df85861fff3e73588ac187cb66948311865a
parent1e2f47bb0d0ae495ee1c6d3346881bebadf87afa
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