svn commit: r236070 - head/sys/dev/usb

Marius Strobl marius at FreeBSD.org
Sat May 26 08:33:53 UTC 2012


Author: marius
Date: Sat May 26 08:33:53 2012
New Revision: 236070
URL: http://svn.freebsd.org/changeset/base/236070

Log:
  Consistently use USB_PAGE_SIZE. Currently, this is cosmetic.
  
  MFC after:	3 days

Modified:
  head/sys/dev/usb/usb_transfer.c

Modified: head/sys/dev/usb/usb_transfer.c
==============================================================================
--- head/sys/dev/usb/usb_transfer.c	Sat May 26 08:31:12 2012	(r236069)
+++ head/sys/dev/usb/usb_transfer.c	Sat May 26 08:33:53 2012	(r236070)
@@ -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