aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/nmi.c
diff options
context:
space:
mode:
authorRavikiran G Thirumalai <kiran@scalex86.org>2006-01-11 16:45:39 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-11 22:04:59 -0500
commitdf79efde82952edc653fa6eb1338a82b87aa0585 (patch)
tree67abb221cf834c3a7766c406aae1e55aa31b6bcf /arch/x86_64/kernel/nmi.c
parent05b3cbd8bb98736387df8a2e1efe311b1fb4d2ad (diff)
[PATCH] x86_64: Node local pda take 2 -- cpu_pda preparation
Helper patch to change cpu_pda users to use macros to access cpu_pda instead of the cpu_pda[] array. Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org> Signed-off-by: Shai Fultheim <shai@scalex86.org> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel/nmi.c')
-rw-r--r--arch/x86_64/kernel/nmi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/kernel/nmi.c b/arch/x86_64/kernel/nmi.c
index 39d445e16f22..40575d83d12f 100644
--- a/arch/x86_64/kernel/nmi.c
+++ b/arch/x86_64/kernel/nmi.c
@@ -155,19 +155,19 @@ int __init check_nmi_watchdog (void)
155 smp_call_function(nmi_cpu_busy, (void *)&endflag, 0, 0); 155 smp_call_function(nmi_cpu_busy, (void *)&endflag, 0, 0);
156 156
157 for (cpu = 0; cpu < NR_CPUS; cpu++) 157 for (cpu = 0; cpu < NR_CPUS; cpu++)
158 counts[cpu] = cpu_pda[cpu].__nmi_count; 158 counts[cpu] = cpu_pda(cpu)->__nmi_count;
159 local_irq_enable(); 159 local_irq_enable();
160 mdelay((10*1000)/nmi_hz); // wait 10 ticks 160 mdelay((10*1000)/nmi_hz); // wait 10 ticks
161 161
162 for (cpu = 0; cpu < NR_CPUS; cpu++) { 162 for (cpu = 0; cpu < NR_CPUS; cpu++) {
163 if (!cpu_online(cpu)) 163 if (!cpu_online(cpu))
164 continue; 164 continue;
165 if (cpu_pda[cpu].__nmi_count - counts[cpu] <= 5) { 165 if (cpu_pda(cpu)->__nmi_count - counts[cpu] <= 5) {
166 endflag = 1; 166 endflag = 1;
167 printk("CPU#%d: NMI appears to be stuck (%d->%d)!\n", 167 printk("CPU#%d: NMI appears to be stuck (%d->%d)!\n",
168 cpu, 168 cpu,
169 counts[cpu], 169 counts[cpu],
170 cpu_pda[cpu].__nmi_count); 170 cpu_pda(cpu)->__nmi_count);
171 nmi_active = 0; 171 nmi_active = 0;
172 lapic_nmi_owner &= ~LAPIC_NMI_WATCHDOG; 172 lapic_nmi_owner &= ~LAPIC_NMI_WATCHDOG;
173 nmi_perfctr_msr = 0; 173 nmi_perfctr_msr = 0;