浏览代码

ans-lcd: BKL pushdown

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Arnd Bergmann 17 年之前
父节点
当前提交
b82829943c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/macintosh/ans-lcd.c

+ 2 - 0
drivers/macintosh/ans-lcd.c

@@ -3,6 +3,7 @@
  */
 
 #include <linux/types.h>
+#include <linux/smp_lock.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/miscdevice.h>
@@ -119,6 +120,7 @@ anslcd_ioctl( struct inode * inode, struct file * file,
 static int
 anslcd_open( struct inode * inode, struct file * file )
 {
+	cycle_kernel_lock();
 	return 0;
 }