From: Linus Walleij Date: Tue, 10 Jan 2012 23:10:41 +0000 (-0800) Subject: drivers/rtc/rtc-ab8500.c: change msleep() to usleep_range() X-Git-Tag: v3.3-rc1~113^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=012e52e15e7ebbc7b08165e8f4b10f71a3e6810b;p=pandora-kernel.git 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 Cc: Jonas Aaberg Cc: Alessandro Zummo Cc: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed