diff options
author | 2017-12-23 20:56:02 +0100 | |
---|---|---|
committer | 2018-01-15 09:35:48 +0100 | |
commit | a25381aa3ae60a2e028c95f1318649b13cbbce30 (patch) | |
tree | 33eb75af3f080f6f1e6a8210c59731cd11243273 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | swiotlb: wire up ->dma_supported in swiotlb_dma_ops (diff) | |
download | wireguard-linux-a25381aa3ae60a2e028c95f1318649b13cbbce30.tar.xz wireguard-linux-a25381aa3ae60a2e028c95f1318649b13cbbce30.zip |
swiotlb: refactor coherent buffer freeing
Factor out a new swiotlb_free_buffer helper that checks if an address
is allocated from the swiotlb bounce buffer, and if yes frees it.
This allows to simplify the swiotlb_free implemenation that uses
dma_direct_free to free the non-bounce buffer allocations.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions