summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/alpha/alpha/mp_machdep.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/alpha/alpha/mp_machdep.c b/sys/alpha/alpha/mp_machdep.c
index d3a6460..7595330 100644
--- a/sys/alpha/alpha/mp_machdep.c
+++ b/sys/alpha/alpha/mp_machdep.c
@@ -332,15 +332,14 @@ cpu_mp_setmaxid(void)
int i;
mp_maxid = 0;
- for (i = 0; i < hwrpb->rpb_pcs_cnt; i++) {
+ for (i = 0; i < hwrpb->rpb_pcs_cnt && i < MAXCPU; i++) {
if (i == PCPU_GET(cpuid))
continue;
if (!smp_cpu_enabled(LOCATE_PCS(hwrpb, i)))
continue;
- if (i > MAXCPU)
- continue;
mp_maxid = i;
}
+ mp_maxid++;
}
int
OpenPOWER on IntegriCloud