svn commit: r356221 - head/sys/riscv/riscv
Kristof Provost
kp at FreeBSD.org
Tue Dec 31 10:53:03 UTC 2019
Author: kp
Date: Tue Dec 31 10:53:03 2019
New Revision: 356221
URL: https://svnweb.freebsd.org/changeset/base/356221
Log:
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
Modified:
head/sys/riscv/riscv/mp_machdep.c
Modified: head/sys/riscv/riscv/mp_machdep.c
==============================================================================
--- head/sys/riscv/riscv/mp_machdep.c Tue Dec 31 05:41:47 2019 (r356220)
+++ head/sys/riscv/riscv/mp_machdep.c Tue Dec 31 10:53:03 2019 (r356221)
@@ -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);
}
More information about the svn-src-all
mailing list