svn commit: r187167 - head/sys/dev/usb2/controller
Andrew Thompson
thompsa at FreeBSD.org
Tue Jan 13 11:02:09 PST 2009
Author: thompsa
Date: Tue Jan 13 19:02:07 2009
New Revision: 187167
URL: http://svn.freebsd.org/changeset/base/187167
Log:
MFp4: //depot/projects/usb at 155759
Optimise: Remove extra flush calls.
Submitted by: Hans Petter Selasky
Modified:
head/sys/dev/usb2/controller/ohci2.c
Modified: head/sys/dev/usb2/controller/ohci2.c
==============================================================================
--- head/sys/dev/usb2/controller/ohci2.c Tue Jan 13 19:01:56 2009 (r187166)
+++ head/sys/dev/usb2/controller/ohci2.c Tue Jan 13 19:02:07 2009 (r187167)
@@ -1558,13 +1558,12 @@ ohci_setup_standard_chain(struct usb2_xf
}
ed->ed_flags = htole32(ed_flags);
- usb2_pc_cpu_flush(ed->page_cache);
-
td = xfer->td_transfer_first;
ed->ed_headp = td->td_self;
if (xfer->udev->pwr_save.suspended == 0) {
+ /* the append function will flush the endpoint descriptor */
OHCI_APPEND_QH(ed, *ed_last);
if (methods == &ohci_device_bulk_methods) {
@@ -2009,13 +2008,12 @@ ohci_device_isoc_enter(struct usb2_xfer
}
ed->ed_flags = htole32(ed_flags);
- usb2_pc_cpu_flush(ed->page_cache);
-
td = xfer->td_transfer_first;
ed->ed_headp = td->itd_self;
/* isochronous transfers are not affected by suspend / resume */
+ /* the append function will flush the endpoint descriptor */
OHCI_APPEND_QH(ed, sc->sc_isoc_p_last);
}
More information about the svn-src-head
mailing list