summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2011-01-13 14:15:36 +0000
committerjhb <jhb@FreeBSD.org>2011-01-13 14:15:36 +0000
commit47e6986a14be609b511974947d1ad40ec1dacd33 (patch)
treefcba6457ebb4a9e7a01cfdc5645c42948e199f2d
parent018ecd0b32523158410eefb4d0e7aa8d72baf09f (diff)
downloadFreeBSD-src-47e6986a14be609b511974947d1ad40ec1dacd33.zip
FreeBSD-src-47e6986a14be609b511974947d1ad40ec1dacd33.tar.gz
Use software interrupt priorities for USB kthreads instead of hardware
interrupt priorities. Reviewed by: hps MFC after: 2 weeks
-rw-r--r--sys/dev/usb/usb_process.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_process.h b/sys/dev/usb/usb_process.h
index b4159af..23cf660 100644
--- a/sys/dev/usb/usb_process.h
+++ b/sys/dev/usb/usb_process.h
@@ -27,11 +27,13 @@
#ifndef _USB_PROCESS_H_
#define _USB_PROCESS_H_
+#include <sys/interrupt.h>
#include <sys/priority.h>
+#include <sys/runq.h>
/* defines */
-#define USB_PRI_HIGH PI_NET
-#define USB_PRI_MED PI_DISK
+#define USB_PRI_HIGH PI_SWI(SWI_NET)
+#define USB_PRI_MED PI_SWI(SWI_CAMBIO)
#define USB_PROC_WAIT_TIMEOUT 2
#define USB_PROC_WAIT_DRAIN 1
OpenPOWER on IntegriCloud