Skip to content
Commit aea7e2a8 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

dma-direct: factor the swiotlb code out of __dma_direct_alloc_pages



Add a new helper to deal with the swiotlb case.  This keeps the code
nicely boundled and removes the not required call to
dma_direct_optimal_gfp_mask for the swiotlb case.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarRobin Murphy <robin.murphy@arm.com>
parent f5d3939a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment