svn commit: r210620 - head/sys/x86/acpica
John Baldwin
jhb at FreeBSD.org
Thu Jul 29 17:37:36 UTC 2010
Author: jhb
Date: Thu Jul 29 17:37:35 2010
New Revision: 210620
URL: http://svn.freebsd.org/changeset/base/210620
Log:
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
Modified:
head/sys/x86/acpica/srat.c
Modified: head/sys/x86/acpica/srat.c
==============================================================================
--- head/sys/x86/acpica/srat.c Thu Jul 29 17:03:27 2010 (r210619)
+++ head/sys/x86/acpica/srat.c Thu Jul 29 17:37:35 2010 (r210620)
@@ -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++;
}
More information about the svn-src-head
mailing list