]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] pm: vmwatchdog power management callbacks.
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 16 Jun 2009 08:30:35 +0000 (10:30 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 16 Jun 2009 08:31:14 +0000 (10:31 +0200)
commitedf455f2fcd8c3aaa89423a3ed527eddf54d9931
tree0a40c6dd2bf48ad3dc60ed04e5e45061a2313c2a
parentfbfba3fb91028247192f20740a86c0b529f832e2
[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