Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99815
b: refs/heads/master
c: 88ff0a4
h: refs/heads/master
i:
  99813: 7a60731
  99811: aaa0e3c
  99807: f689e2e
v: v3
  • Loading branch information
Hiroshi Shimamoto authored and Ingo Molnar committed Jun 2, 2008
1 parent 39a1156 commit e17aa15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba3a5974239293d921235e6fa82b09b670e674ef
refs/heads/master: 88ff0a474e98f869d8c321e29481f298320100d6
16 changes: 7 additions & 9 deletions trunk/arch/x86/kernel/nmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
#include <linux/cpumask.h>
#include <linux/kernel_stat.h>
#include <linux/kdebug.h>
#include <linux/smp.h>

#include <asm/smp.h>
#include <asm/nmi.h>
#include <asm/proto.h>
#include <asm/timer.h>

Expand All @@ -45,13 +44,16 @@ static cpumask_t backtrace_mask = CPU_MASK_NONE;
* 0: the lapic NMI watchdog is disabled, but can be enabled
*/
atomic_t nmi_active = ATOMIC_INIT(0); /* oprofile uses this */
static int panic_on_timeout;
EXPORT_SYMBOL(nmi_active);

unsigned int nmi_watchdog = NMI_DEFAULT;
EXPORT_SYMBOL(nmi_watchdog);

static int panic_on_timeout;

static unsigned int nmi_hz = HZ;
static DEFINE_PER_CPU(short, wd_enabled);
static int endflag __initdata = 0;
static int endflag __initdata;

static inline unsigned int get_nmi_count(int cpu)
{
Expand Down Expand Up @@ -404,7 +406,7 @@ nmi_watchdog_tick(struct pt_regs *regs, unsigned reason)
static DEFINE_SPINLOCK(lock); /* Serialise the printks */

spin_lock(&lock);
printk("NMI backtrace for cpu %d\n", cpu);
printk(KERN_WARNING "NMI backtrace for cpu %d\n", cpu);
dump_stack();
spin_unlock(&lock);
cpu_clear(cpu, backtrace_mask);
Expand Down Expand Up @@ -529,7 +531,3 @@ void __trigger_all_cpu_backtrace(void)
mdelay(1);
}
}

EXPORT_SYMBOL(nmi_active);
EXPORT_SYMBOL(nmi_watchdog);

0 comments on commit e17aa15

Please sign in to comment.