Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99805
b: refs/heads/master
c: d1b946b
h: refs/heads/master
i:
  99803: 0e2ef83
v: v3
  • Loading branch information
Cyrill Gorcunov authored and Thomas Gleixner committed May 25, 2008
1 parent aa6e833 commit d4e43c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: c6425b9f143a75bbcd0a7684b4df40e20d0b2f32
refs/heads/master: d1b946b97d71423f365fa797d1428e1847c0bec1
11 changes: 10 additions & 1 deletion trunk/arch/x86/kernel/nmi_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ 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;

unsigned int nmi_watchdog = NMI_DEFAULT;
static unsigned int nmi_hz = HZ;
Expand Down Expand Up @@ -140,6 +141,14 @@ static int __init setup_nmi_watchdog(char *str)
{
int nmi;

if (!strncmp(str, "panic", 5)) {
panic_on_timeout = 1;
str = strchr(str, ',');
if (!str)
return 1;
++str;
}

get_option(&str, &nmi);

if ((nmi >= NMI_INVALID) || (nmi < NMI_NONE))
Expand Down Expand Up @@ -374,7 +383,7 @@ nmi_watchdog_tick(struct pt_regs *regs, unsigned reason)
* die_nmi will return ONLY if NOTIFY_STOP happens..
*/
die_nmi("BUG: NMI Watchdog detected LOCKUP",
regs, 0);
regs, panic_on_timeout);
} else {
__get_cpu_var(last_irq_sum) = sum;
local_set(&__get_cpu_var(alert_counter), 0);
Expand Down

0 comments on commit d4e43c2

Please sign in to comment.