aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2008-05-20 19:16:11 +0200
committerJonathan Corbet <corbet@lwn.net>2008-06-20 14:05:58 -0600
commitb9bde77a6a4f76b767d4363a5f74127528426159 (patch)
tree58bba5cd9b1199ad29ab742c5f9f4429da707728 /drivers/macintosh
parent600bf8140c22e473ef0806ae45214aaaf53e0da3 (diff)
downloadkernel_samsung_smdk4412-b9bde77a6a4f76b767d4363a5f74127528426159.zip
kernel_samsung_smdk4412-b9bde77a6a4f76b767d4363a5f74127528426159.tar.gz
kernel_samsung_smdk4412-b9bde77a6a4f76b767d4363a5f74127528426159.tar.bz2
macintosh-smu: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/macintosh')
-rw-r--r--drivers/macintosh/smu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/macintosh/smu.c b/drivers/macintosh/smu.c
index 77ad192..b82fcd2 100644
--- a/drivers/macintosh/smu.c
+++ b/drivers/macintosh/smu.c
@@ -19,6 +19,7 @@
* the userland interface
*/
+#include <linux/smp_lock.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/device.h>
@@ -1083,10 +1084,12 @@ static int smu_open(struct inode *inode, struct file *file)
pp->mode = smu_file_commands;
init_waitqueue_head(&pp->wait);
+ lock_kernel();
spin_lock_irqsave(&smu_clist_lock, flags);
list_add(&pp->list, &smu_clist);
spin_unlock_irqrestore(&smu_clist_lock, flags);
file->private_data = pp;
+ unlock_kernel();
return 0;
}