Timur Tabi 5d63c13415 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>
2011-01-12 10:24:27 +00:00
..
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2010-12-02 14:10:21 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2009-09-18 08:39:37 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2010-10-28 21:42:59 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2009-06-18 07:30:30 +00:00
2009-09-18 08:39:37 +00:00
2009-06-18 07:30:30 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00