aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2008-05-27 21:49:39 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-02 06:53:54 -0400
commit88ff0a474e98f869d8c321e29481f298320100d6 (patch)
tree58272ab5fff920c7cf80203bcf432d48ca2f7fae
parentba3a5974239293d921235e6fa82b09b670e674ef (diff)
x86: coding style fixes for nmi.c
before total: 1 errors, 6 warnings, 534 lines checked after total: 0 errors, 1 warnings, 532 lines checked Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/nmi.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/arch/x86/kernel/nmi.c b/arch/x86/kernel/nmi.c
index 3671a9f3564b..bf143f191fb1 100644
--- a/arch/x86/kernel/nmi.c
+++ b/arch/x86/kernel/nmi.c
@@ -23,9 +23,8 @@
23#include <linux/cpumask.h> 23#include <linux/cpumask.h>
24#include <linux/kernel_stat.h> 24#include <linux/kernel_stat.h>
25#include <linux/kdebug.h> 25#include <linux/kdebug.h>
26#include <linux/smp.h>
26 27
27#include <asm/smp.h>
28#include <asm/nmi.h>
29#include <asm/proto.h> 28#include <asm/proto.h>
30#include <asm/timer.h> 29#include <asm/timer.h>
31 30
@@ -45,13 +44,16 @@ static cpumask_t backtrace_mask = CPU_MASK_NONE;
45 * 0: the lapic NMI watchdog is disabled, but can be enabled 44 * 0: the lapic NMI watchdog is disabled, but can be enabled
46 */ 45 */
47atomic_t nmi_active = ATOMIC_INIT(0); /* oprofile uses this */ 46atomic_t nmi_active = ATOMIC_INIT(0); /* oprofile uses this */
48static int panic_on_timeout; 47EXPORT_SYMBOL(nmi_active);
49 48
50unsigned int nmi_watchdog = NMI_DEFAULT; 49unsigned int nmi_watchdog = NMI_DEFAULT;
50EXPORT_SYMBOL(nmi_watchdog);
51
52static int panic_on_timeout;
51 53
52static unsigned int nmi_hz = HZ; 54static unsigned int nmi_hz = HZ;
53static DEFINE_PER_CPU(short, wd_enabled); 55static DEFINE_PER_CPU(short, wd_enabled);
54static int endflag __initdata = 0; 56static int endflag __initdata;
55 57
56static inline unsigned int get_nmi_count(int cpu) 58static inline unsigned int get_nmi_count(int cpu)
57{ 59{
@@ -404,7 +406,7 @@ nmi_watchdog_tick(struct pt_regs *regs, unsigned reason)
404 static DEFINE_SPINLOCK(lock); /* Serialise the printks */ 406 static DEFINE_SPINLOCK(lock); /* Serialise the printks */
405 407
406 spin_lock(&lock); 408 spin_lock(&lock);
407 printk("NMI backtrace for cpu %d\n", cpu); 409 printk(KERN_WARNING "NMI backtrace for cpu %d\n", cpu);
408 dump_stack(); 410 dump_stack();
409 spin_unlock(&lock); 411 spin_unlock(&lock);
410 cpu_clear(cpu, backtrace_mask); 412 cpu_clear(cpu, backtrace_mask);
@@ -529,7 +531,3 @@ void __trigger_all_cpu_backtrace(void)
529 mdelay(1); 531 mdelay(1);
530 } 532 }
531} 533}
532
533EXPORT_SYMBOL(nmi_active);
534EXPORT_SYMBOL(nmi_watchdog);
535