[S390] pm: vmwatchdog power management callbacks.
commit58872d5f367876a81dcda82465381d80d321a81d
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 16 Jun 2009 08:30:35 +0000 (16 10:30 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 16 Jun 2009 08:31:14 +0000 (16 10:31 +0200)
tree0a40c6dd2bf48ad3dc60ed04e5e45061a2313c2a
parentdaa70fa960fb5625d762988cca7e4733573d90a3
[S390] pm: vmwatchdog power management callbacks.

This patch implements suspend/hibernation for the vmwatchdog driver. The
pm_notifier_callchain is used to get control on PM events. Since watchdog
operation and suspend cannot work together in a reliable fashion, the open
flag is also used to prevent suspend and open from happening at the same
time.
The watchdog can also be active with no open file descriptor. This patch
adds another flag which is only changed in vmwdt_keep_alive and
vmwdt_disable.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/vmwatchdog.c