diff options
| author | Christoph Hellwig <[email protected]> | 2019-05-20 07:29:39 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2019-05-27 15:31:11 +0000 |
| commit | 9a4ab94afcc4738d65ecfdff726a4a14abde1b98 (patch) | |
| tree | f7404d5985641b887fa810540f6de489414fa676 /lib/genalloc.c | |
| parent | iommu/dma: Don't remap CMA unnecessarily (diff) | |
| download | kernel-9a4ab94afcc4738d65ecfdff726a4a14abde1b98.tar.gz kernel-9a4ab94afcc4738d65ecfdff726a4a14abde1b98.zip | |
iommu/dma: Merge the CMA and alloc_pages allocation paths
Instead of having a separate code path for the non-blocking alloc_pages
and CMA allocations paths merge them into one. There is a slight
behavior change here in that we try the page allocator if CMA fails.
This matches what dma-direct and other iommu drivers do and will be
needed to use the dma-iommu code on architectures without DMA remapping
later on.
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions
