Skip to content

Commit 112871a

Browse files
petejohanson-adicfriedt
authored andcommitted
tests/kernel/context: Properly idle on MAX32 family
Make sure MAX32_ON_ENTER_CPU_IDLE_HOOK is disabled for the context test, so the CPU will actually idle with WFI and not return before the timer expires for test_cpu_idle test. Signed-off-by: Pete Johanson <[email protected]>
1 parent 0d6e404 commit 112871a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/kernel/context/prj.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
CONFIG_IRQ_OFFLOAD=y
22
CONFIG_ZTEST=y
33
CONFIG_MP_MAX_NUM_CPUS=1
4+
5+
# On MAX32, this will prevent WFI by default, so disable this config
6+
CONFIG_MAX32_ON_ENTER_CPU_IDLE_HOOK=n

0 commit comments

Comments
 (0)