Subject: CVS commit: src/sys/dev/usb
To: None <>
From: Charles M. Hannum <>
List: source-changes
Date: 03/11/2005 19:25:22
Module Name:	src
Committed By:	mycroft
Date:		Fri Mar 11 19:25:22 UTC 2005

Modified Files:
	src/sys/dev/usb: ohci.c ohcivar.h

Log Message:
Restructure interrupt handling a little:
* Only futz with the done list in the soft interrupt handler.  In the hard
  interrupt handler, do nothing except mask WDH and queue the soft interrupt.
  This simplifies a bunch of code, removes two O(n^2) queue manipulations,
  and gets rid of some really sketchy stuff around the queue head access.
* Use the auto-masking code at the end of the interrupt handler for both WDH
  and RHSC interrupts.  Again, this reduces the code a little, and avoids
  multiple writebacks to the chip registers.

To generate a diff of this commit:
cvs rdiff -r1.156 -r1.157 src/sys/dev/usb/ohci.c
cvs rdiff -r1.35 -r1.36 src/sys/dev/usb/ohcivar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.