Commit 2dcdf8c1 authored by Christoph Hellwig's avatar Christoph Hellwig

dma-contiguous: fix the Kconfig entry for CONFIG_DMA_NUMA_CMA

It makes no sense to expose CONFIG_DMA_NUMA_CMA if CONFIG_NUMA is not
enabled, and random config options shouldn't be default unless there
is a good reason.  Replace the default NUMA with a depends on to fix both
issues.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarRobin Murphy <roin.murphy@arm.com>
parent fb5a4315
...@@ -160,7 +160,7 @@ if DMA_CMA ...@@ -160,7 +160,7 @@ if DMA_CMA
config DMA_NUMA_CMA config DMA_NUMA_CMA
bool "Enable separate DMA Contiguous Memory Area for NUMA Node" bool "Enable separate DMA Contiguous Memory Area for NUMA Node"
default NUMA depends on NUMA
help help
Enable this option to get numa CMA areas so that NUMA devices Enable this option to get numa CMA areas so that NUMA devices
can get local memory by DMA coherent APIs. can get local memory by DMA coherent APIs.
......
Markdown is supported
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