aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi/ipmi_watchdog.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2008-05-20 13:16:04 -0400
committerJonathan Corbet <corbet@lwn.net>2008-06-20 16:05:58 -0400
commitaf96f0103d332be92c42a44accf731da667ecc03 (patch)
tree828900218fe917371a0b37517f060d16c4f4432d /drivers/char/ipmi/ipmi_watchdog.c
parentb0e54f7c477ad24fa0d49baed942c5a5909c748b (diff)
ipmi-watchdog: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/char/ipmi/ipmi_watchdog.c')
-rw-r--r--drivers/char/ipmi/ipmi_watchdog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_watchdog.c b/drivers/char/ipmi/ipmi_watchdog.c
index 1b9a87047817..357d99b9d0e5 100644
--- a/drivers/char/ipmi/ipmi_watchdog.c
+++ b/drivers/char/ipmi/ipmi_watchdog.c
@@ -35,6 +35,7 @@
35#include <linux/moduleparam.h> 35#include <linux/moduleparam.h>
36#include <linux/ipmi.h> 36#include <linux/ipmi.h>
37#include <linux/ipmi_smi.h> 37#include <linux/ipmi_smi.h>
38#include <linux/smp_lock.h>
38#include <linux/watchdog.h> 39#include <linux/watchdog.h>
39#include <linux/miscdevice.h> 40#include <linux/miscdevice.h>
40#include <linux/init.h> 41#include <linux/init.h>
@@ -819,6 +820,8 @@ static int ipmi_open(struct inode *ino, struct file *filep)
819 if (test_and_set_bit(0, &ipmi_wdog_open)) 820 if (test_and_set_bit(0, &ipmi_wdog_open))
820 return -EBUSY; 821 return -EBUSY;
821 822
823 cycle_kernel_lock();
824
822 /* 825 /*
823 * Don't start the timer now, let it start on the 826 * Don't start the timer now, let it start on the
824 * first heartbeat. 827 * first heartbeat.