- 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:
parent
f8266671d1
commit
89e98cbe8d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user