Date: Thu, 29 Jul 2010 17:37:35 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r210620 - head/sys/x86/acpica Message-ID: <201007291737.o6THbZIl008598@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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++; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007291737.o6THbZIl008598>