Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6988
b: refs/heads/master
c: 748f2ed
h: refs/heads/master
v: v3
  • Loading branch information
George Anzinger authored and Linus Torvalds committed Sep 5, 2005
1 parent bf7f075 commit 4f20049
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 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: f2f30ebca6c0c95e987cb9a1fd1495770a75432e
refs/heads/master: 748f2edb52712aa3d926470a888608dc500d17e8
5 changes: 4 additions & 1 deletion trunk/arch/i386/kernel/nmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,11 @@ void nmi_watchdog_tick (struct pt_regs * regs)
*/
alert_counter[cpu]++;
if (alert_counter[cpu] == 5*nmi_hz)
/*
* die_nmi will return ONLY if NOTIFY_STOP happens..
*/
die_nmi(regs, "NMI Watchdog detected LOCKUP");
} else {

last_irq_sums[cpu] = sum;
alert_counter[cpu] = 0;
}
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/i386/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,10 @@ static DEFINE_SPINLOCK(nmi_print_lock);

void die_nmi (struct pt_regs *regs, const char *msg)
{
if (notify_die(DIE_NMIWATCHDOG, msg, regs, 0, 0, SIGINT) ==
NOTIFY_STOP)
return;

spin_lock(&nmi_print_lock);
/*
* We are in trouble anyway, lets at least try
Expand Down
11 changes: 9 additions & 2 deletions trunk/include/asm-i386/kdebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,16 @@ enum die_val {
DIE_PAGE_FAULT,
};

static inline int notify_die(enum die_val val,char *str,struct pt_regs *regs,long err,int trap, int sig)
static inline int notify_die(enum die_val val, const char *str,
struct pt_regs *regs, long err, int trap, int sig)
{
struct die_args args = { .regs=regs, .str=str, .err=err, .trapnr=trap,.signr=sig };
struct die_args args = {
.regs = regs,
.str = str,
.err = err,
.trapnr = trap,
.signr = sig
};
return notifier_call_chain(&i386die_chain, val, &args);
}

Expand Down

0 comments on commit 4f20049

Please sign in to comment.