]> git.neil.brown.name Git - history.git/commitdiff
Fix repeat delays in adbhit, they didn't make the transition to
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 11 Oct 2003 18:28:40 +0000 (20:28 +0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 11 Oct 2003 18:28:40 +0000 (20:28 +0200)
jiffies based values to ms. This fix crazy key repeat on ADB
based PowerMacs

drivers/macintosh/adbhid.c

index 9fe903a5b2491f9cee6da715607093eee534cc15..409bf81400994fd7e46ae0a8e14a0db6767e20f2 100644 (file)
@@ -611,8 +611,8 @@ adbhid_input_register(int id, int default_id, int original_handler_id,
                /* HACK WARNING!! This should go away as soon there is an utility
                 * to control that for event devices.
                 */
-               adbhid[id]->input.rep[REP_DELAY] = HZ/2;   /* input layer default: HZ/4 */
-               adbhid[id]->input.rep[REP_PERIOD] = HZ/15; /* input layer default: HZ/33 */
+               adbhid[id]->input.rep[REP_DELAY] = 500;   /* input layer default: 250 */
+               adbhid[id]->input.rep[REP_PERIOD] = 66; /* input layer default: 33 */
        }
 }