Skip to content

Commit 2855c70

Browse files
committed
zephyr: cpu: init cpu if context save is not support
Fix multicore test issue on cavs platforms which don't support context save now, so need to init cpu when the core boot up. Signed-off-by: Rander Wang <rander.wang@intel.com>
1 parent fb6c3b7 commit 2855c70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zephyr/lib/cpu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ int cpu_enable_core(int id)
148148
* initialization. By reinitializing the idle thread, we would overwrite the kernel structs
149149
* and the idle thread stack.
150150
*/
151+
#ifdef CONFIG_ADSP_IMR_CONTEXT_SAVE
151152
if (pm_state_next_get(id)->state == PM_STATE_ACTIVE)
153+
#endif
152154
z_init_cpu(id);
153155
#endif
154156

0 commit comments

Comments
 (0)