diff options
author | jeff <jeff@FreeBSD.org> | 2003-11-30 22:08:24 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-11-30 22:08:24 +0000 |
commit | eef73a3ab3453a557f59aa29bd531467b0ed6240 (patch) | |
tree | bd6b631ae8307c5a386ead10d24d589243465ca0 /sys | |
parent | f9be70e21341bf8f757c189b83e3ab88257e1f3d (diff) | |
download | FreeBSD-src-eef73a3ab3453a557f59aa29bd531467b0ed6240.zip FreeBSD-src-eef73a3ab3453a557f59aa29bd531467b0ed6240.tar.gz |
- Set mp_maxid in a way that is consistent with every other arch. It is
one more than the last valid 'cpuid'.
Approved by: re (rwatson)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/alpha/alpha/mp_machdep.c | 5 |
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 |