svn commit: r198152 - head/sys/dev/usb/input

Andrew Thompson thompsa at FreeBSD.org
Thu Oct 15 20:09:28 UTC 2009


Author: thompsa
Date: Thu Oct 15 20:09:27 2009
New Revision: 198152
URL: http://svn.freebsd.org/changeset/base/198152

Log:
  Only poll ukbd if KDB is active.
  
  Submitted by:	HPS

Modified:
  head/sys/dev/usb/input/ukbd.c

Modified: head/sys/dev/usb/input/ukbd.c
==============================================================================
--- head/sys/dev/usb/input/ukbd.c	Thu Oct 15 20:07:08 2009	(r198151)
+++ head/sys/dev/usb/input/ukbd.c	Thu Oct 15 20:09:27 2009	(r198152)
@@ -67,6 +67,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/callout.h>
 #include <sys/malloc.h>
 #include <sys/priv.h>
+#include <sys/kdb.h>
 
 #include <dev/usb/usb.h>
 #include <dev/usb/usbdi.h>
@@ -328,6 +329,9 @@ ukbd_do_poll(struct ukbd_softc *sc, uint
 {
 	DPRINTFN(2, "polling\n");
 
+	if (kdb_active == 0)
+		return;		/* Only poll if KDB is active */
+
 	while (sc->sc_inputs == 0) {
 
 		usbd_transfer_poll(sc->sc_xfer, UKBD_N_TRANSFER);


More information about the svn-src-all mailing list