Skip to content
Commit c5e8b6c6 authored by Keith Packard's avatar Keith Packard Committed by Benjamin Cabé
Browse files

soc/intel_adsp: soc_adsp_halt_cpu always fails when NUM_CPUS <= 1



When the target has only a single CPU, this function cannot ever
succeed. Skip all of the drama and just return -EINVAL. This makes GCC 14
happy as it doesn't get confused about possible out of bounds access of the
soc_cpus_active array.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent b0318643
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment