Skip to content

Commit

Permalink
[PATCH] Fix watchdog drivers to call emergency_reboot()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Jul 26, 2005
1 parent 4de8b9b commit f82567e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/char/watchdog/eurotechwdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/watchdog/softdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static void watchdog_fire(unsigned long data)
else
{
printk(KERN_CRIT PFX "Initiating system reboot.\n");
machine_restart(NULL);
emergency_restart(NULL);
printk(KERN_CRIT PFX "Reboot didn't ?????\n");
}
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/watchdog/wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ static irqreturn_t wdt_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();
#endif
#else
printk(KERN_CRIT "Reset in 5ms.\n");
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/watchdog/wdt_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static irqreturn_t wdtpci_interrupt(int irq, void *dev_id, struct pt_regs *regs)
printk(KERN_CRIT PFX "Would Reboot.\n");
#else
printk(KERN_CRIT PFX "Initiating system reboot.\n");
machine_restart(NULL);
emergency_restart(NULL);
#endif
#else
printk(KERN_CRIT PFX "Reset in 5ms.\n");
Expand Down

0 comments on commit f82567e

Please sign in to comment.