aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/nmi_32.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-06-16 06:44:17 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 03:12:49 -0400
commita0176e2485ce6468f9b74264a2fd6c19811f027a (patch)
tree85e18095b4812b81eaf4400ffeb38f2f9bd8b1c9 /arch/x86/kernel/nmi_32.c
parent1b40a895df6c7d5a80e71f65674060b03d84bbef (diff)
Revert "Revert "x86: fix ioapic bug again""
This reverts commit 0b6a39f7ebcb1c82587ce35b401c513eed41ac5c. The changes in tip/x86/apic solve this better. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/nmi_32.c')
-rw-r--r--arch/x86/kernel/nmi_32.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/x86/kernel/nmi_32.c b/arch/x86/kernel/nmi_32.c
index 84160f74eeb0..11b14bbaa61e 100644
--- a/arch/x86/kernel/nmi_32.c
+++ b/arch/x86/kernel/nmi_32.c
@@ -26,6 +26,7 @@
26 26
27#include <asm/smp.h> 27#include <asm/smp.h>
28#include <asm/nmi.h> 28#include <asm/nmi.h>
29#include <asm/timer.h>
29 30
30#include "mach_traps.h" 31#include "mach_traps.h"
31 32
@@ -81,7 +82,7 @@ int __init check_nmi_watchdog(void)
81 82
82 prev_nmi_count = kmalloc(NR_CPUS * sizeof(int), GFP_KERNEL); 83 prev_nmi_count = kmalloc(NR_CPUS * sizeof(int), GFP_KERNEL);
83 if (!prev_nmi_count) 84 if (!prev_nmi_count)
84 return -1; 85 goto error;
85 86
86 printk(KERN_INFO "Testing NMI watchdog ... "); 87 printk(KERN_INFO "Testing NMI watchdog ... ");
87 88
@@ -118,7 +119,7 @@ int __init check_nmi_watchdog(void)
118 if (!atomic_read(&nmi_active)) { 119 if (!atomic_read(&nmi_active)) {
119 kfree(prev_nmi_count); 120 kfree(prev_nmi_count);
120 atomic_set(&nmi_active, -1); 121 atomic_set(&nmi_active, -1);
121 return -1; 122 goto error;
122 } 123 }
123 printk("OK.\n"); 124 printk("OK.\n");
124 125
@@ -129,6 +130,10 @@ int __init check_nmi_watchdog(void)
129 130
130 kfree(prev_nmi_count); 131 kfree(prev_nmi_count);
131 return 0; 132 return 0;
133error:
134 timer_ack = !cpu_has_tsc;
135
136 return -1;
132} 137}
133 138
134static int __init setup_nmi_watchdog(char *str) 139static int __init setup_nmi_watchdog(char *str)