[PATCH 12/16] Use msecs_to_jiffies in atkbd

Dmitry Torokhov
2004-12-29T07:43:41Z

===================================================================

ChangeSet@1.1972, 2004-12-28 00:47:30-05:00, dtor_core@ameritech.net
Input: use msecs_to_jiffies instead of manually calculating
delay for Toshiba bouncing keys workaround to the code
works with HZ != 1000.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

atkbd.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

===================================================================

diff -Nru a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
--- a/drivers/input/keyboard/atkbd.c 2004-12-29 01:51:48 -05:00
+++ b/drivers/input/keyboard/atkbd.c 2004-12-29 01:51:48 -05:00
@@ -378,7 +378,7 @@
break;
case 1:
atkbd->last = code;
- atkbd->time = jiffies + (atkbd->dev.rep[REP_DELAY] * HZ + 500) / 1000 / 2;
+ atkbd->time = jiffies + msecs_to_jiffies(atkbd->dev.rep[REP_DELAY]) / 2;
break;
case 2:
if (!time_after(jiffies, atkbd->time) && atkbd->last == code)