Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[WATCHDOG] ipmi: add the standard watchdog timeout ioctls

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>

authored by

Corey Minyard and committed by
Wim Van Sebroeck
783e6bcd 38ff6fd2

+2
+2
drivers/char/ipmi/ipmi_watchdog.c
··· 669 669 return 0; 670 670 671 671 case WDIOC_SET_PRETIMEOUT: 672 + case WDIOC_SETPRETIMEOUT: 672 673 i = copy_from_user(&val, argp, sizeof(int)); 673 674 if (i) 674 675 return -EFAULT; ··· 677 676 return ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); 678 677 679 678 case WDIOC_GET_PRETIMEOUT: 679 + case WDIOC_GETPRETIMEOUT: 680 680 i = copy_to_user(argp, &pretimeout, sizeof(pretimeout)); 681 681 if (i) 682 682 return -EFAULT;