riscv: Remove pointless loop

There's no point in checking for absent CPUs if we're not going to do anything
about either the present or absent case. This loop can just be removed.

Reviewed by:	philip
Sponsored by:	Axiado
This commit is contained in:
kp 2019-12-31 10:53:03 +00:00
parent 001fc92065
commit c390d50c04

View File

@ -204,13 +204,8 @@ release_aps(void *dummy __unused)
sbi_send_ipi(mask.__bits);
for (i = 0; i < 2000; i++) {
if (smp_started) {
for (cpu = 0; cpu <= mp_maxid; cpu++) {
if (CPU_ABSENT(cpu))
continue;
}
if (smp_started)
return;
}
DELAY(1000);
}