summaryrefslogtreecommitdiffstats
path: root/drivers/char/watchdog/ibmasr.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2005-08-19 23:21:01 +0200
committerWim Van Sebroeck <wim@iguana.be>2005-09-11 22:09:54 +0200
commitcd7b80079b120406de902ee1eaa2dbdaa867dada (patch)
treedf5fb858fa892adb8fd5b41dfb16da61d04474e7 /drivers/char/watchdog/ibmasr.c
parent[WATCHDOG] driver-for-ibm-automatic-server-restart-watchdog.patch (diff)
downloadlinux-cd7b80079b120406de902ee1eaa2dbdaa867dada.tar.xz
linux-cd7b80079b120406de902ee1eaa2dbdaa867dada.zip
[WATCHDOG] driver-for-ibm-automatic-server-restart-watchdog-fix
Add fixed timeout comments Cc: Andrey Panin <pazke@donpac.ru> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'drivers/char/watchdog/ibmasr.c')
-rw-r--r--drivers/char/watchdog/ibmasr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/char/watchdog/ibmasr.c b/drivers/char/watchdog/ibmasr.c
index a32c073d29bc..4f90015be7dd 100644
--- a/drivers/char/watchdog/ibmasr.c
+++ b/drivers/char/watchdog/ibmasr.c
@@ -267,7 +267,10 @@ static int asr_ioctl(struct inode *inode, struct file *file,
asr_toggle();
return 0;
-
+ /*
+ * The hardware has a fixed timeout value, so WDIOC_SETTIMEOUT
+ * is a noop and WDIOC_GETTIMEOUT always returns 256.
+ */
case WDIOC_SETTIMEOUT:
if (get_user(heartbeat, p))
return -EFAULT;