Skip to content

Commit

Permalink
zephyr: cpu: fix condition to init cpu
Browse files Browse the repository at this point in the history
This check should depend on platform generation, not on a not related
feature. Original assumption, that on ACE IMR context save is always
enabled was wrong

Signed-off-by: Tomasz Leman <[email protected]>
  • Loading branch information
tmleman committed Sep 5, 2023
1 parent c2b23c5 commit 635bec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zephyr/lib/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ int cpu_enable_core(int id)
* initialization. By reinitializing the idle thread, we would overwrite the kernel structs
* and the idle thread stack.
*/
if (!IS_ENABLED(CONFIG_ADSP_IMR_CONTEXT_SAVE) ||
if (!IS_ENABLED(CONFIG_ACE) ||
pm_state_next_get(id)->state == PM_STATE_ACTIVE)
z_init_cpu(id);
#endif
Expand Down

0 comments on commit 635bec8

Please sign in to comment.