Staging: olpc_dcon: change to msleep to usleep_range
authorJens Frederich <jfrederich@gmail.com>
Thu, 25 Jul 2013 20:06:32 +0000 (22:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2013 20:38:09 +0000 (13:38 -0700)
commit5607ce90d727d2aaad93bd72551b97067141d68a
treedad1ce9c1c716e0e48346233bfa73c4ed7dbaa8e
parentf4616af01813cbf6a2c2aabcedb11c721d5e7680
Staging: olpc_dcon: change to msleep to usleep_range

The resolution of msleep is related to HZ, so with HZ set to
100 any msleep of less then 10ms will become ~10ms. This is
not what we want. Use usleep_range to get more control of
what is happening here.

Signed-off-by: Jens Frederich <jfrederich@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/olpc_dcon/olpc_dcon.c