Skip to content

Commit 854c3f9

Browse files
committed
soc/intel_adsp: We can't halt "another" processor on uni-processor
When there's only 1 CPU, there's no other CPU to halt. Elide the soc_adsp_halt_cpu function to make sure it won't be called. Signed-off-by: Keith Packard <[email protected]>
1 parent 2a4b7a4 commit 854c3f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

soc/intel/intel_adsp/cavs/multiprocessing.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ __imr void soc_mp_init(void)
199199
soc_cpus_active[0] = true;
200200
}
201201

202+
#if CONFIG_MP_MAX_NUM_CPUS > 1
203+
202204
int soc_adsp_halt_cpu(int id)
203205
{
204206
unsigned int irq_mask;
@@ -238,3 +240,5 @@ int soc_adsp_halt_cpu(int id)
238240
}
239241
return 0;
240242
}
243+
244+
#endif

0 commit comments

Comments
 (0)