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/ia64 | |
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/ia64')
-rw-r--r-- | sys/ia64/ia64/busdma_machdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ia64/ia64/busdma_machdep.c b/sys/ia64/ia64/busdma_machdep.c index 3cdd268..34cc252 100644 --- a/sys/ia64/ia64/busdma_machdep.c +++ b/sys/ia64/ia64/busdma_machdep.c @@ -820,7 +820,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 */ - total_bounced++; if (op & BUS_DMASYNC_PREWRITE) { while (bpage != NULL) { @@ -829,6 +828,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); } + total_bounced++; } if (op & BUS_DMASYNC_POSTREAD) { @@ -838,6 +838,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); } + total_bounced++; } } } |