Date: Sat, 8 Nov 2008 09:45:29 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 152651 for review Message-ID: <200811080945.mA89jT6I050721@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=152651 Change 152651 by hselasky@hselasky_laptop001 on 2008/11/08 09:45:19 Remove double page offset checks. The check is now done inside the invalidate and flush functions. Affected files ... .. //depot/projects/usb/src/sys/dev/usb2/core/usb2_busdma.c#11 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_busdma.c#11 (text+ko) ==== @@ -1387,12 +1387,10 @@ while (nframes--) { - if (pc->page_offset_buf != pc->page_offset_end) { - if (pc->isread) { - usb2_pc_cpu_invalidate(pc); - } else { - usb2_pc_cpu_flush(pc); - } + if (pc->isread) { + usb2_pc_cpu_invalidate(pc); + } else { + usb2_pc_cpu_flush(pc); } pc++; } @@ -1423,11 +1421,8 @@ pc = xfer->frbuffers; while (nframes--) { - - if (pc->page_offset_buf != pc->page_offset_end) { - if (pc->isread) { - usb2_pc_cpu_invalidate(pc); - } + if (pc->isread) { + usb2_pc_cpu_invalidate(pc); } pc++; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811080945.mA89jT6I050721>