USB: ati_remote.c: autorepeat fix
authorMarko Macek <Marko.Macek@gmx.net>
Sun, 30 Jul 2006 08:55:12 +0000 (01:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 Aug 2006 23:41:42 +0000 (16:41 -0700)
commit168ffc444663e34a20e6d04b6c31e5d495b283fb
tree9339796ee1c75c265d6011002eef58d4424da04a
parent064e875a4cb1dad7b3a00661877fe8cd95d1a59a
USB: ati_remote.c: autorepeat fix

When HZ is set to 250 (new default) or 100, the time span during which
repeated events from the device are ignored could be too small due to
ms->jiffies rounding.  This causes the auto repeat to kick in early making
it impossible for the user to generate individual press/release events.
Increate the timeout to compensate.

Signed-off-by: Marko Macek <Marko.Macek@gmx.net>
Cc: Dmitry Torokhov <dtor_core@ameritech.net>
Cc: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/input/ati_remote.c