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

dma-mapping: make dma_atomic_pool_init self-contained



The memory allocated for the atomic pool needs to have the same
mapping attributes that we use for remapping, so use
pgprot_dmacoherent instead of open coding it.  Also deduct a
suitable zone to allocate the memory from based on the presence
of the DMA zones.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 419e2f18
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment