summaryrefslogtreecommitdiff
path: root/include/linux/dma-map-ops.h
diff options
context:
space:
mode:
authorYajun Deng <yajun.deng@linux.dev>2023-05-12 12:42:10 +0300
committerChristoph Hellwig <hch@lst.de>2023-07-31 18:54:28 +0300
commit22e4a348f87c59df2c02f1efb7ba9a56b622c7b8 (patch)
tree30ce9c2e09b1991ecff13f8554f908636fc647b9 /include/linux/dma-map-ops.h
parent3d6f126b15d9fd8435455fffc912d976973a7a09 (diff)
downloadlinux-22e4a348f87c59df2c02f1efb7ba9a56b622c7b8.tar.xz
dma-contiguous: support per-numa CMA for all architectures
In the commit b7176c261cdb ("dma-contiguous: provide the ability to reserve per-numa CMA"), Barry adds DMA_PERNUMA_CMA for ARM64. But this feature is architecture independent, so support per-numa CMA for all architectures, and enable it by default if NUMA. Signed-off-by: Yajun Deng <yajun.deng@linux.dev> Tested-by: Yicong Yang <yangyicong@hisilicon.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/dma-map-ops.h')
-rw-r--r--include/linux/dma-map-ops.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/dma-map-ops.h b/include/linux/dma-map-ops.h
index bb5e06fd359d..f2fc203fb8a1 100644
--- a/include/linux/dma-map-ops.h
+++ b/include/linux/dma-map-ops.h
@@ -169,12 +169,6 @@ static inline void dma_free_contiguous(struct device *dev, struct page *page,
}
#endif /* CONFIG_DMA_CMA*/
-#ifdef CONFIG_DMA_PERNUMA_CMA
-void dma_pernuma_cma_reserve(void);
-#else
-static inline void dma_pernuma_cma_reserve(void) { }
-#endif /* CONFIG_DMA_PERNUMA_CMA */
-
#ifdef CONFIG_DMA_DECLARE_COHERENT
int dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr,
dma_addr_t device_addr, size_t size);