Skip to content

Commit

Permalink
tests: kernel/mp: move CONFIG_KERNEL_COHERENCE to Kconfig
Browse files Browse the repository at this point in the history
This moves CONFIG_KERNEL_COHERENCE from prj.conf to Kconfig.
This gets rid of the cmake warning where CONFIG_KERNEL_COHERENCE
is assigned the value 'y' but gets the value ''. This is simply
done to avoid confusion when running the test manually.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
  • Loading branch information
dcpleung authored and nashif committed Jun 21, 2023
1 parent 4c7aeb2 commit 71b522c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 11 additions & 0 deletions tests/kernel/mp/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

# Must have this on where available, otherwise the linker will place
# the shared variables in cached/incoherent memory.
config KERNEL_COHERENCE
bool
default y if ARCH_HAS_COHERENCE

source "Kconfig.zephyr"
4 changes: 0 additions & 4 deletions tests/kernel/mp/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
CONFIG_ZTEST=y
CONFIG_ZTEST_NEW_API=y
CONFIG_SMP=n

# Must have this on where available, otherwise the linker will place
# the shared variables in cached/incoherent memory.
CONFIG_KERNEL_COHERENCE=y

0 comments on commit 71b522c

Please sign in to comment.