summaryrefslogtreecommitdiffstats
path: root/arch/arc
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-08-03 11:42:15 +0200
committerChristoph Hellwig <hch@lst.de>2019-08-29 16:43:33 +0200
commit8e3a68fb55e00e0760bd8023883e064f1f93c62d (patch)
tree534cbf26b705987972b800501afec405b9175533 /arch/arc
parentdma-mapping: remove arch_dma_mmap_pgprot (diff)
downloadlinux-8e3a68fb55e00e0760bd8023883e064f1f93c62d.tar.xz
linux-8e3a68fb55e00e0760bd8023883e064f1f93c62d.zip
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: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/arc')
-rw-r--r--arch/arc/mm/dma.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arc/mm/dma.c b/arch/arc/mm/dma.c
index 62c210e7ee4c..ff4a5752f8cc 100644
--- a/arch/arc/mm/dma.c
+++ b/arch/arc/mm/dma.c
@@ -104,9 +104,3 @@ void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
dev_info(dev, "use %sncoherent DMA ops\n",
dev->dma_coherent ? "" : "non");
}
-
-static int __init atomic_pool_init(void)
-{
- return dma_atomic_pool_init(GFP_KERNEL, pgprot_noncached(PAGE_KERNEL));
-}
-postcore_initcall(atomic_pool_init);