- 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)
This commit is contained in:
jeff 2003-11-30 22:08:24 +00:00
parent f8266671d1
commit 89e98cbe8d

View File

@ -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