diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2005-07-26 19:53:19 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-26 23:35:43 +0200 |
commit | f82567e55fcd25bb7addf2cfd8b79f36f409dc2e (patch) | |
tree | c579e6c540b10bfd69abc086f985fc066d2708fc /drivers/char/watchdog/eurotechwdt.c | |
parent | [PATCH] Update sysrq-B to use emergency_restart() (diff) | |
download | linux-f82567e55fcd25bb7addf2cfd8b79f36f409dc2e.tar.xz linux-f82567e55fcd25bb7addf2cfd8b79f36f409dc2e.zip |
[PATCH] Fix watchdog drivers to call emergency_reboot()
If a watchdog driver has decided it is time to reboot the system
we know something is wrong and we are in interrupt context
so emergency_reboot() is what we want.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/watchdog/eurotechwdt.c')
-rw-r--r-- | drivers/char/watchdog/eurotechwdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/watchdog/eurotechwdt.c b/drivers/char/watchdog/eurotechwdt.c index d10e554a14d6..f1016e3ba117 100644 --- a/drivers/char/watchdog/eurotechwdt.c +++ b/drivers/char/watchdog/eurotechwdt.c @@ -167,7 +167,7 @@ static irqreturn_t eurwdt_interrupt(int irq, void *dev_id, struct pt_regs *regs) printk(KERN_CRIT "Would Reboot.\n"); #else printk(KERN_CRIT "Initiating system reboot.\n"); - machine_restart(NULL); + emergency_restart(NULL); #endif return IRQ_HANDLED; } |