When performing a sanity check on the SRAT table to ensure that each
memory domain has an assigned CPU, ignore disabled CPUs. Previously disabled CPUs were counted as being in domain 0. Reported by: mdf
This commit is contained in:
parent
3b37222674
commit
01db506530
@ -150,7 +150,8 @@ check_domains(void)
|
||||
for (i = 0; i < num_mem; i++) {
|
||||
found = 0;
|
||||
for (j = 0; j <= MAX_APIC_ID; j++)
|
||||
if (cpus[j].domain == mem_info[i].domain) {
|
||||
if (cpus[j].enabled &&
|
||||
cpus[j].domain == mem_info[i].domain) {
|
||||
cpus[j].has_memory = 1;
|
||||
found++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user