public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ipmi: add the standard watchdog timeout ioctls
@ 2007-11-20 13:45 Corey Minyard
  0 siblings, 0 replies; only message in thread
From: Corey Minyard @ 2007-11-20 13:45 UTC (permalink / raw)
  To: Andrew Morton, Linux Kernel; +Cc: Benoît Guillon, OpenIPMI Developers

From: Corey Minyard <cminyard@mvista.com>

Add the standard IOCTLs to the IPMI driver for setting and getting
the pretimeout.  Tested by Benoît Guillon.

Signed off by: Corey Minyard <cminyard@mvista.com>
Cc: Benoît Guillon <guillon@thalescomputers.fr>
---
Index: linux-2.6.23/drivers/char/ipmi/ipmi_watchdog.c
===================================================================
--- linux-2.6.23.orig/drivers/char/ipmi/ipmi_watchdog.c
+++ linux-2.6.23/drivers/char/ipmi/ipmi_watchdog.c
@@ -683,6 +683,7 @@ static int ipmi_ioctl(struct inode *inod
 		return 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 *inod
 		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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-20 13:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-20 13:45 [PATCH] ipmi: add the standard watchdog timeout ioctls Corey Minyard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox