[WATCHDOG] ipmi: add the standard watchdog timeout ioctls
authorCorey Minyard <cminyard@mvista.com>
Tue, 20 Nov 2007 20:14:46 +0000 (12:14 -0800)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 28 Nov 2007 08:25:19 +0000 (08:25 +0000)
Add the standard IOCTLs to the IPMI driver for setting and getting
the pretimeout.  Tested by Benoit Guillon.

Signed off by: Corey Minyard <cminyard@mvista.com>
Cc: Benoit Guillon <guillon@thalescomputers.fr>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/char/ipmi/ipmi_watchdog.c

index e686fc925168a16614cb41ed3932554f3217d3df..8f45ca9235ad10fb41ece3d803d776843bb3ea53 100644 (file)
@@ -669,6 +669,7 @@ static int ipmi_ioctl(struct inode *inode, struct file *file,
                return 0;
 
        case WDIOC_SET_PRETIMEOUT:
+       case WDIOC_SETPRETIMEOUT:
                i = copy_from_user(&val, argp, sizeof(int));
                if (i)
                        return -EFAULT;
@@ -676,6 +677,7 @@ static int ipmi_ioctl(struct inode *inode, struct file *file,
                return ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY);
 
        case WDIOC_GET_PRETIMEOUT:
+       case WDIOC_GETPRETIMEOUT:
                i = copy_to_user(argp, &pretimeout, sizeof(pretimeout));
                if (i)
                        return -EFAULT;