diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2017-01-15 15:19:27 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-15 15:40:23 -0800 |
commit | 13e360ac97e2a6386f9e26e02e20bce4b6e83415 (patch) | |
tree | cb45762a07dc2d54eb7ab8a50a5c641945d84e12 /drivers/input/mouse/cyapa_gen3.c | |
parent | cd4c1b412d4dd094c2ec02be4f0ee41bcc386170 (diff) | |
download | linux-13e360ac97e2a6386f9e26e02e20bce4b6e83415.tar.bz2 |
Input: cyapa - use msleep() for long delay
ulseep_range() uses hrtimers and provides no advantage over msleep()
for larger delays. Fix up the 50ms delays here to use msleep() and
reduce the load on the hrtimer subsystem.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/cyapa_gen3.c')
-rw-r--r-- | drivers/input/mouse/cyapa_gen3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/cyapa_gen3.c b/drivers/input/mouse/cyapa_gen3.c index a47b06f4ed51..1cbfa4a6e830 100644 --- a/drivers/input/mouse/cyapa_gen3.c +++ b/drivers/input/mouse/cyapa_gen3.c @@ -562,7 +562,7 @@ static int cyapa_gen3_bl_exit(struct cyapa *cyapa) * Wait for bootloader to exit, and operation mode to start. * Normally, this takes at least 50 ms. */ - usleep_range(50000, 100000); + msleep(50); /* * In addition, when a device boots for the first time after being * updated to new firmware, it must first calibrate its sensors, which |