watchdog: Add a flag to indicate the watchdog doesn't reboot things
authorAlan Cox <alan@linux.intel.com>
Fri, 11 May 2012 10:00:19 +0000 (12:00 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 30 May 2012 05:54:40 +0000 (07:54 +0200)
Some watchdogs merely trigger external alarms and controls. In a managed
environment this is very useful but we want drivers to be able to figure
out which is which now multiple dogs can be loaded. Thus add an ALARMONLY
feature flag.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
include/linux/watchdog.h

index 508d56399e6d836f2edf81cc868f198770f060d0..32678a50f98d4d71f0a0725d6860bf255e4571b1 100644 (file)
@@ -45,6 +45,8 @@ struct watchdog_info {
 #define        WDIOF_SETTIMEOUT        0x0080  /* Set timeout (in seconds) */
 #define        WDIOF_MAGICCLOSE        0x0100  /* Supports magic close char */
 #define        WDIOF_PRETIMEOUT        0x0200  /* Pretimeout (in seconds), get/set */
+#define        WDIOF_ALARMONLY         0x0400  /* Watchdog triggers a management or
+                                          other external alarm not a reboot */
 #define        WDIOF_KEEPALIVEPING     0x8000  /* Keep alive ping reply */
 
 #define        WDIOS_DISABLECARD       0x0001  /* Turn off the watchdog timer */