From: Nicholas Mc Guire Date: Sun, 15 Jan 2017 23:19:27 +0000 (-0800) Subject: Input: cyapa - use msleep() for long delay X-Git-Tag: v4.11-rc1~102^2^2~68 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=13e360ac97e2a6386f9e26e02e20bce4b6e83415;p=karo-tx-linux.git 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 Signed-off-by: Dmitry Torokhov --- 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