From owner-svn-src-all@FreeBSD.ORG Tue Jan 13 19:02:08 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55B62106564A; Tue, 13 Jan 2009 19:02:08 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 434CF8FC0A; Tue, 13 Jan 2009 19:02:08 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n0DJ28oE012183; Tue, 13 Jan 2009 19:02:08 GMT (envelope-from thompsa@svn.freebsd.org) Received: (from thompsa@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0DJ284X012182; Tue, 13 Jan 2009 19:02:08 GMT (envelope-from thompsa@svn.freebsd.org) Message-Id: <200901131902.n0DJ284X012182@svn.freebsd.org> From: Andrew Thompson Date: Tue, 13 Jan 2009 19:02:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187167 - head/sys/dev/usb2/controller X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2009 19:02:09 -0000 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@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); }