svn commit: r187911 - head/sys/arm/arm

Andrew Thompson thompsa at FreeBSD.org
Thu Jan 29 23:01:34 PST 2009


Author: thompsa
Date: Fri Jan 30 07:01:32 2009
New Revision: 187911
URL: http://svn.freebsd.org/changeset/base/187911

Log:
  Increment total_bounced busdma stat as required.

Modified:
  head/sys/arm/arm/busdma_machdep.c

Modified: head/sys/arm/arm/busdma_machdep.c
==============================================================================
--- head/sys/arm/arm/busdma_machdep.c	Fri Jan 30 05:49:27 2009	(r187910)
+++ head/sys/arm/arm/busdma_machdep.c	Fri Jan 30 07:01:32 2009	(r187911)
@@ -1144,6 +1144,7 @@ _bus_dmamap_sync_bp(bus_dma_tag_t dmat, 
 				cpu_l2cache_wb_range(bpage->vaddr,
 				    bpage->datacount);
 			}
+			dmat->bounce_zone->total_bounced++;
 		}
 		if (op & BUS_DMASYNC_POSTREAD) {
 			if (bpage->vaddr_nocache == 0) {
@@ -1155,6 +1156,7 @@ _bus_dmamap_sync_bp(bus_dma_tag_t dmat, 
 			bcopy((void *)(bpage->vaddr_nocache != 0 ? 
 	       		    bpage->vaddr_nocache : bpage->vaddr),
 			    (void *)bpage->datavaddr, bpage->datacount);
+			dmat->bounce_zone->total_bounced++;
 		}
 	}
 }


More information about the svn-src-all mailing list