On Wednesday 12 January 2011 23:03:37 John Baldwin wrote:
> Currently the USB kthreads created for each USB bus use hardware interrupt
> priorities.  I think this is wrong and that they should use software
> interrupt priorities instead.  This patch would do that:
> 
> --- //depot/projects/smpng/sys/dev/usb/usb_process.h  2009-08-25
> 21:12:15.000000000 0000 +++
> //depot/user/jhb/socket/dev/usb/usb_process.h 2010-12-21
> 20:30:04.000000000 0000 @@ -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

Your suggestion is OK. The priority assignments were made to avoid USB threads 
competing with other userland threads.

--HPS
_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to