diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2005-07-26 13:53:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-26 17:35:43 -0400 |
commit | f82567e55fcd25bb7addf2cfd8b79f36f409dc2e (patch) | |
tree | c579e6c540b10bfd69abc086f985fc066d2708fc /drivers | |
parent | 4de8b9b76017365572f778332d74fe050d9c8c2a (diff) |
[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')
-rw-r--r-- | drivers/char/watchdog/eurotechwdt.c | 2 | ||||
-rw-r--r-- | drivers/char/watchdog/softdog.c | 2 | ||||
-rw-r--r-- | drivers/char/watchdog/wdt.c | 2 | ||||
-rw-r--r-- | drivers/char/watchdog/wdt_pci.c | 2 |
4 files changed, 4 insertions, 4 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) | |||
167 | printk(KERN_CRIT "Would Reboot.\n"); | 167 | printk(KERN_CRIT "Would Reboot.\n"); |
168 | #else | 168 | #else |
169 | printk(KERN_CRIT "Initiating system reboot.\n"); | 169 | printk(KERN_CRIT "Initiating system reboot.\n"); |
170 | machine_restart(NULL); | 170 | emergency_restart(NULL); |
171 | #endif | 171 | #endif |
172 | return IRQ_HANDLED; | 172 | return IRQ_HANDLED; |
173 | } | 173 | } |
diff --git a/drivers/char/watchdog/softdog.c b/drivers/char/watchdog/softdog.c index 117903498a01..0d93097f06b4 100644 --- a/drivers/char/watchdog/softdog.c +++ b/drivers/char/watchdog/softdog.c | |||
@@ -97,7 +97,7 @@ static void watchdog_fire(unsigned long data) | |||
97 | else | 97 | else |
98 | { | 98 | { |
99 | printk(KERN_CRIT PFX "Initiating system reboot.\n"); | 99 | printk(KERN_CRIT PFX "Initiating system reboot.\n"); |
100 | machine_restart(NULL); | 100 | emergency_restart(NULL); |
101 | printk(KERN_CRIT PFX "Reboot didn't ?????\n"); | 101 | printk(KERN_CRIT PFX "Reboot didn't ?????\n"); |
102 | } | 102 | } |
103 | } | 103 | } |
diff --git a/drivers/char/watchdog/wdt.c b/drivers/char/watchdog/wdt.c index 5684aa379886..1210ca0c425b 100644 --- a/drivers/char/watchdog/wdt.c +++ b/drivers/char/watchdog/wdt.c | |||
@@ -266,7 +266,7 @@ static irqreturn_t wdt_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
266 | printk(KERN_CRIT "Would Reboot.\n"); | 266 | printk(KERN_CRIT "Would Reboot.\n"); |
267 | #else | 267 | #else |
268 | printk(KERN_CRIT "Initiating system reboot.\n"); | 268 | printk(KERN_CRIT "Initiating system reboot.\n"); |
269 | machine_restart(NULL); | 269 | emergency_restart(); |
270 | #endif | 270 | #endif |
271 | #else | 271 | #else |
272 | printk(KERN_CRIT "Reset in 5ms.\n"); | 272 | printk(KERN_CRIT "Reset in 5ms.\n"); |
diff --git a/drivers/char/watchdog/wdt_pci.c b/drivers/char/watchdog/wdt_pci.c index 7651deda928c..c80cb77b92fb 100644 --- a/drivers/char/watchdog/wdt_pci.c +++ b/drivers/char/watchdog/wdt_pci.c | |||
@@ -311,7 +311,7 @@ static irqreturn_t wdtpci_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
311 | printk(KERN_CRIT PFX "Would Reboot.\n"); | 311 | printk(KERN_CRIT PFX "Would Reboot.\n"); |
312 | #else | 312 | #else |
313 | printk(KERN_CRIT PFX "Initiating system reboot.\n"); | 313 | printk(KERN_CRIT PFX "Initiating system reboot.\n"); |
314 | machine_restart(NULL); | 314 | emergency_restart(NULL); |
315 | #endif | 315 | #endif |
316 | #else | 316 | #else |
317 | printk(KERN_CRIT PFX "Reset in 5ms.\n"); | 317 | printk(KERN_CRIT PFX "Reset in 5ms.\n"); |