mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
MFC r198152
Only poll ukbd if KDB is active.
This commit is contained in:
parent
1ea6a20c73
commit
6a8d0ac969
1 changed files with 4 additions and 0 deletions
|
|
@ -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, uint8_t wait)
|
|||
{
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue