ab8500_fg: Replace msleep() with usleep_range() for greater accuracy
authorJonas Aaberg <jonas.aberg@stericsson.com>
Tue, 15 Jan 2013 14:09:13 +0000 (14:09 +0000)
committerAnton Vorontsov <anton@enomsg.org>
Wed, 16 Jan 2013 01:35:19 +0000 (17:35 -0800)
commit9a0bd070fd3582aed024a2f13a30b1de307db1e2
treeb7c4ca1f2aaf47d8249c78e5faa2b831787f64bb
parentb269fff4f9ad2cec9413ea9e10f26c5d8c9f5ddc
ab8500_fg: Replace msleep() with usleep_range() for greater accuracy

Doing so provides a greater degree of accuracy when dealing with
time-frames between 1us and 20ms. msleep() is only accurate for
wake-ups greater than 20ms.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: Johan BJORNSTEDT <johan.bjornstedt@stericsson.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/ab8500_fg.c