svn commit: r217350 - head/sys/dev/usb

John Baldwin jhb at FreeBSD.org
Thu Jan 13 14:15:37 UTC 2011


Author: jhb
Date: Thu Jan 13 14:15:36 2011
New Revision: 217350
URL: http://svn.freebsd.org/changeset/base/217350

Log:
  Use software interrupt priorities for USB kthreads instead of hardware
  interrupt priorities.
  
  Reviewed by:	hps
  MFC after:	2 weeks

Modified:
  head/sys/dev/usb/usb_process.h

Modified: head/sys/dev/usb/usb_process.h
==============================================================================
--- head/sys/dev/usb/usb_process.h	Thu Jan 13 13:04:49 2011	(r217349)
+++ head/sys/dev/usb/usb_process.h	Thu Jan 13 14:15:36 2011	(r217350)
@@ -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


More information about the svn-src-all mailing list