projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
watchdog: core: stop watchdog when executing poweroff command
[linux-2.6-microblaze.git]
/
drivers
/
watchdog
/
watchdog_core.c
diff --git
a/drivers/watchdog/watchdog_core.c
b/drivers/watchdog/watchdog_core.c
index
d4c5a73
..
5b55cca
100644
(file)
--- a/
drivers/watchdog/watchdog_core.c
+++ b/
drivers/watchdog/watchdog_core.c
@@
-161,7
+161,7
@@
static int watchdog_reboot_notifier(struct notifier_block *nb,
struct watchdog_device *wdd;
wdd = container_of(nb, struct watchdog_device, reboot_nb);
- if (code == SYS_DOWN || code == SYS_HALT) {
+ if (code == SYS_DOWN || code == SYS_HALT
|| code == SYS_POWER_OFF
) {
if (watchdog_hw_running(wdd)) {
int ret;