ipmi: add the standard watchdog timeout ioctls
PATCH 1/1 ipmi: add the standard watchdog timeout ioctls
From: Corey Minyard <[email protected]>
Add the standard IOCTLs to the IPMI driver for setting and getting the pretimeout. Tested by Benoît Guillon.
Signed off by: Corey Minyard <[email protected]>
Cc: Benoît Guillon <[email protected]>
---
drivers/char/ipmi/ipmi_watchdog.c +2 -0
@@ -683,6 +683,7 @@ static int ipmi_ioctl(struct inode *inodreturn 0 ;case WDIOC_SET_PRETIMEOUT : +case WDIOC_SETPRETIMEOUT : i =copy_from_user (&val, argp,sizeof (int ));if (i)return -EFAULT ;
@@ -690,6 +691,7 @@ static int ipmi_ioctl(struct inode *inodreturn 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 ;