diff options
author | Timur Tabi <timur@freescale.com> | 2010-12-03 17:51:43 +0100 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2011-01-12 11:24:27 +0100 |
commit | 5d63c13415db2819590bba975dd023eaa593ddc3 (patch) | |
tree | c1a99558bd8d6f74f1f3753bf7e8d2a56c27fd20 /drivers/oprofile/buffer_sync.c | |
parent | watchdog: alim7101_wdt: fix compiler warning on alim7101_pci_tbl (diff) | |
download | linux-5d63c13415db2819590bba975dd023eaa593ddc3.tar.xz linux-5d63c13415db2819590bba975dd023eaa593ddc3.zip |
watchdog: add CONFIG_WATCHDOG_NOWAYOUT support to PowerPC Book-E watchdog driver
Normally, the watchdog is disabled when dev/watchdog is closed, but if
CONFIG_WATCHDOG_NOWAYOUT is defined, then it means that the watchdog should
remain enabled. So we should disable it only if CONFIG_WATCHDOG_NOWAYOUT is
not defined.
Also ensure that /dev/watchdog is only opened by one process at a time. That
way, a second process can't accidentally disable the watchdog while the first
process has it open. There shouldn't be any need for more than one process to
open /dev/watchdog anyway.
Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/oprofile/buffer_sync.c')
0 files changed, 0 insertions, 0 deletions