PERFORCE change 152651 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sat Nov 8 01:45:30 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=152651
Change 152651 by hselasky at 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++;
}
More information about the p4-projects
mailing list