Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315955
b: refs/heads/master
c: 18cb2ae
h: refs/heads/master
i:
  315953: f6406c2
  315951: 8f6312f
v: v3
  • Loading branch information
Oskar Schirmer authored and Wim Van Sebroeck committed Jul 23, 2012
1 parent 44e395c commit 5e88771
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90fe6c608f8d46e5bb3f31c2d5e1c90475253f79
refs/heads/master: 18cb2ae55f98648caf0d52ef075f38b16aae7ec6
13 changes: 0 additions & 13 deletions trunk/drivers/char/ipmi/ipmi_watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,6 @@

#define IPMI_WDOG_TIMER_NOT_INIT_RESP 0x80

/* These are here until the real ones get into the watchdog.h interface. */
#ifndef WDIOC_GETTIMEOUT
#define WDIOC_GETTIMEOUT _IOW(WATCHDOG_IOCTL_BASE, 20, int)
#endif
#ifndef WDIOC_SET_PRETIMEOUT
#define WDIOC_SET_PRETIMEOUT _IOW(WATCHDOG_IOCTL_BASE, 21, int)
#endif
#ifndef WDIOC_GET_PRETIMEOUT
#define WDIOC_GET_PRETIMEOUT _IOW(WATCHDOG_IOCTL_BASE, 22, int)
#endif

static DEFINE_MUTEX(ipmi_watchdog_mutex);
static bool nowayout = WATCHDOG_NOWAYOUT;

Expand Down Expand Up @@ -732,15 +721,13 @@ static int ipmi_ioctl(struct file *file,
return -EFAULT;
return 0;

case WDIOC_SET_PRETIMEOUT:
case WDIOC_SETPRETIMEOUT:
i = copy_from_user(&val, argp, sizeof(int));
if (i)
return -EFAULT;
pretimeout = val;
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)
Expand Down

0 comments on commit 5e88771

Please sign in to comment.