diff options
author | scottl <scottl@FreeBSD.org> | 2007-03-06 18:28:43 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2007-03-06 18:28:43 +0000 |
commit | 32acf7e44635d0e5b2f6ddbde2487b3b32c3332b (patch) | |
tree | 0f3983d452e2af92fc66ef294b7104b792dfe54c /sys/i386 | |
parent | 4808fe374b9f5c5762dae587f7222bab83d24879 (diff) | |
download | FreeBSD-src-32acf7e44635d0e5b2f6ddbde2487b3b32c3332b.zip FreeBSD-src-32acf7e44635d0e5b2f6ddbde2487b3b32c3332b.tar.gz |
Don't increment total_bounced when doing no-op dmamap_sync ops.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/busdma_machdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i386/i386/busdma_machdep.c b/sys/i386/i386/busdma_machdep.c index 9cb4b7e..ab5b66c 100644 --- a/sys/i386/i386/busdma_machdep.c +++ b/sys/i386/i386/busdma_machdep.c @@ -920,7 +920,6 @@ _bus_dmamap_sync(bus_dma_tag_t dmat, bus_dmamap_t map, bus_dmasync_op_t op) * want to add support for invalidating * the caches on broken hardware */ - dmat->bounce_zone->total_bounced++; CTR4(KTR_BUSDMA, "%s: tag %p tag flags 0x%x op 0x%x " "performing bounce", __func__, op, dmat, dmat->flags); @@ -931,6 +930,7 @@ _bus_dmamap_sync(bus_dma_tag_t dmat, bus_dmamap_t map, bus_dmasync_op_t op) bpage->datacount); bpage = STAILQ_NEXT(bpage, links); } + dmat->bounce_zone->total_bounced++; } if (op & BUS_DMASYNC_POSTREAD) { @@ -940,6 +940,7 @@ _bus_dmamap_sync(bus_dma_tag_t dmat, bus_dmamap_t map, bus_dmasync_op_t op) bpage->datacount); bpage = STAILQ_NEXT(bpage, links); } + dmat->bounce_zone->total_bounced++; } } } |