PERFORCE change 173848 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Jan 28 17:07:04 UTC 2010
http://p4web.freebsd.org/chv.cgi?CH=173848
Change 173848 by hselasky at hselasky_laptop001 on 2010/01/28 17:06:32
USB input:
- improve last patch
PR: usb/143286, kern/141011
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#42 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#42 (text+ko) ====
@@ -517,10 +517,11 @@
ukbd_interrupt(sc);
- if (ukbd_any_key_pressed(sc)) {
- if (ukbd_is_polling(sc) == 0)
- ukbd_event_keyinput(sc);
+ /* Make sure any leftover key events gets read out */
+ if (ukbd_is_polling(sc) == 0)
+ ukbd_event_keyinput(sc);
+ if (ukbd_any_key_pressed(sc) || (sc->sc_inputs != 0)) {
ukbd_start_timer(sc);
} else {
sc->sc_flags &= ~UKBD_FLAG_TIMER_RUNNING;
@@ -1662,6 +1663,7 @@
ukbd_is_polling(sc); /* update state */
} else {
sc->sc_flags &= ~UKBD_FLAG_POLLING;
+ ukbd_start_timer(sc); /* start timer */
}
return (0);
}
More information about the p4-projects
mailing list