Skip to content

Commit 81908cd

Browse files
dcpleungnashif
authored andcommitted
soc: intel_adsp/ace: fix CPU halting
() The check for whether the CPU is already active before halting was incorrect. It should only fail if the CPU is not active, but the CHECKIF() conditional was inverted. So invert it. () Also need to set the entry in the bookkeeping array to false once a CPU is considered powered down. Signed-off-by: Daniel Leung <[email protected]>
1 parent 13298c7 commit 81908cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

soc/xtensa/intel_adsp/ace/multiprocessing.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ int soc_adsp_halt_cpu(int id)
113113
return -EINVAL;
114114
}
115115

116-
CHECKIF(soc_cpus_active[id]) {
116+
CHECKIF(!soc_cpus_active[id]) {
117117
return -EINVAL;
118118
}
119119

@@ -131,5 +131,8 @@ int soc_adsp_halt_cpu(int id)
131131
return -EINVAL;
132132
}
133133

134+
/* Stop sending IPIs to this core */
135+
soc_cpus_active[id] = false;
136+
134137
return 0;
135138
}

0 commit comments

Comments
 (0)