OSDN Git Service

s390/watchdog: enable KEEPALIVE for /dev/watchdog
authorXu Wang <gesaint@linux.vnet.ibm.com>
Fri, 6 Mar 2015 08:26:29 +0000 (16:26 +0800)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 25 Mar 2015 10:49:41 +0000 (11:49 +0100)
There's no reason why we wouldn't want to be able to send a keep alive
message to /dev/watchdog (feed dog) for the s390 diag288 watchdog, so
let's enable the WDIOF_KEEPALIVEPING option.

Signed-off-by: Xu Wang <gesaint@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/watchdog/diag288_wdt.c

index 429494b..480cedd 100644 (file)
@@ -202,7 +202,7 @@ static struct watchdog_ops wdt_ops = {
 };
 
 static struct watchdog_info wdt_info = {
-       .options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE,
+       .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE,
        .firmware_version = 0,
        .identity = "z Watchdog",
 };