Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 May 2012 08:33:53 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r236070 - head/sys/dev/usb
Message-ID:  <201205260833.q4Q8Xr1l062807@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205260833.q4Q8Xr1l062807>