diff --git a/soc/xtensa/intel_adsp/ace/multiprocessing.c b/soc/xtensa/intel_adsp/ace/multiprocessing.c index 599acb7e12a..2b59307c110 100644 --- a/soc/xtensa/intel_adsp/ace/multiprocessing.c +++ b/soc/xtensa/intel_adsp/ace/multiprocessing.c @@ -113,7 +113,7 @@ int soc_adsp_halt_cpu(int id) return -EINVAL; } - CHECKIF(soc_cpus_active[id]) { + CHECKIF(!soc_cpus_active[id]) { return -EINVAL; } @@ -131,5 +131,8 @@ int soc_adsp_halt_cpu(int id) return -EINVAL; } + /* Stop sending IPIs to this core */ + soc_cpus_active[id] = false; + return 0; }