diff options
author | Arnd Bergmann <arnd@arndb.de> | 2008-05-20 13:16:04 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-06-20 16:05:58 -0400 |
commit | af96f0103d332be92c42a44accf731da667ecc03 (patch) | |
tree | 828900218fe917371a0b37517f060d16c4f4432d /drivers/char/ipmi | |
parent | b0e54f7c477ad24fa0d49baed942c5a5909c748b (diff) |
ipmi-watchdog: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r-- | drivers/char/ipmi/ipmi_watchdog.c | 3 |
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. |