[WATCHDOG] driver-for-ibm-automatic-server-restart-watchdog-fix
authorAndrew Morton <akpm@osdl.org>
Fri, 19 Aug 2005 21:21:01 +0000 (23:21 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 11 Sep 2005 20:09:54 +0000 (22:09 +0200)
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>
drivers/char/watchdog/ibmasr.c

index a32c073d29bc28658384e1facd5f0f47138a33ae..4f90015be7dd78ddeb7dad70f1ab1d1a8f873d6f 100644 (file)
@@ -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;