aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/nmi.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-01-22 11:05:54 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-01-22 11:05:54 +0000
commit45dbcba70f350274666ba8bd1271740e4c244762 (patch)
treed50f0411eb09b341cf765ad0bc9b3a48e098c383 /xen/arch/x86/nmi.c
parent5f4c1bb65edbbb91a5d173dc9fa7f1541a2cb826 (diff)
downloadxen-45dbcba70f350274666ba8bd1271740e4c244762.tar.gz
xen-45dbcba70f350274666ba8bd1271740e4c244762.tar.bz2
xen-45dbcba70f350274666ba8bd1271740e4c244762.zip
x86: Make the num_siblings CPU parameter per-CPU.
While it is unlikely that a system has a different number of siblings for different physical CPUs, make this parameter per-CPU for consistency, and deal with the (so far theoretical) case that this is different per CPU package. Signed-off-by: Frank van der Linden <Frank.Vanderlinden@Sun.COM>
Diffstat (limited to 'xen/arch/x86/nmi.c')
-rw-r--r--xen/arch/x86/nmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/nmi.c b/xen/arch/x86/nmi.c
index edc323cd38..8a1f056baf 100644
--- a/xen/arch/x86/nmi.c
+++ b/xen/arch/x86/nmi.c
@@ -286,7 +286,7 @@ static int __pminit setup_p4_watchdog(void)
nmi_perfctr_msr = MSR_P4_IQ_PERFCTR0;
nmi_p4_cccr_val = P4_NMI_IQ_CCCR0;
- if ( smp_num_siblings == 2 )
+ if ( boot_cpu_data.x86_num_siblings == 2 )
nmi_p4_cccr_val |= P4_CCCR_OVF_PMI1;
if (!(misc_enable & MSR_IA32_MISC_ENABLE_PEBS_UNAVAIL))