svn commit: r236478 - stable/8/sys/dev/usb

Marius Strobl marius at FreeBSD.org
Sat Jun 2 19:10:03 UTC 2012


Author: marius
Date: Sat Jun  2 19:10:02 2012
New Revision: 236478
URL: http://svn.freebsd.org/changeset/base/236478

Log:
  MFC: r236070
  
  Consistently use USB_PAGE_SIZE. Currently, this is cosmetic.

Modified:
  stable/8/sys/dev/usb/usb_transfer.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/boot/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/e1000/   (props changed)

Modified: stable/8/sys/dev/usb/usb_transfer.c
==============================================================================
--- stable/8/sys/dev/usb/usb_transfer.c	Sat Jun  2 19:10:00 2012	(r236477)
+++ stable/8/sys/dev/usb/usb_transfer.c	Sat Jun  2 19:10:02 2012	(r236478)
@@ -217,12 +217,12 @@ usbd_transfer_setup_sub_malloc(struct us
 	 * Try multi-allocation chunks to reduce the number of DMA
 	 * allocations, hence DMA allocations are slow.
 	 */
-	if (size >= PAGE_SIZE) {
+	if (size >= USB_PAGE_SIZE) {
 		n_dma_pc = count;
 		n_obj = 1;
 	} else {
 		/* compute number of objects per page */
-		n_obj = (PAGE_SIZE / size);
+		n_obj = (USB_PAGE_SIZE / size);
 		/*
 		 * Compute number of DMA chunks, rounded up
 		 * to nearest one:


More information about the svn-src-all mailing list