kernel: make KERNEL_COHERENCE depend on ARCH_HAS_COHERENCE

We can't enable KERNEL_COHERENCE is architecture does not support it.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-12-07 14:28:53 -05:00
commit e1d42724e5

View file

@ -832,7 +832,8 @@ config TRACE_SCHED_IPI
config KERNEL_COHERENCE config KERNEL_COHERENCE
bool "Place all shared data into coherent memory" bool "Place all shared data into coherent memory"
default y if ARCH_HAS_COHERENCE && SMP && MP_NUM_CPUS > 1 depends on ARCH_HAS_COHERENCE
default y if SMP && MP_NUM_CPUS > 1
select THREAD_STACK_INFO select THREAD_STACK_INFO
help help
When available and selected, the kernel will build in a mode When available and selected, the kernel will build in a mode