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:
John Baldwin 2010-07-29 17:37:35 +00:00
parent 994ce54d01
commit 6676877bd9

View File

@ -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++;
}