浏览代码

um: Remove BKL from random

cycle_kernel_lock() was added during the big BKL pushdown. It should
ensure the serializiation against driver init code. In this case there
is nothing to serialize. Remove it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <20091010153349.641118498@linutronix.de>
Cc: Jeff Dike <jdike@addtoit.com>
Thomas Gleixner 16 年之前
父节点
当前提交
df502e3893
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      arch/um/drivers/random.c

+ 0 - 3
arch/um/drivers/random.c

@@ -7,7 +7,6 @@
  * of the GNU General Public License, incorporated herein by reference.
  * of the GNU General Public License, incorporated herein by reference.
  */
  */
 #include <linux/sched.h>
 #include <linux/sched.h>
-#include <linux/smp_lock.h>
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/fs.h>
 #include <linux/fs.h>
 #include <linux/interrupt.h>
 #include <linux/interrupt.h>
@@ -34,8 +33,6 @@ static DECLARE_WAIT_QUEUE_HEAD(host_read_wait);
 
 
 static int rng_dev_open (struct inode *inode, struct file *filp)
 static int rng_dev_open (struct inode *inode, struct file *filp)
 {
 {
-	cycle_kernel_lock();
-
 	/* enforce read-only access to this chrdev */
 	/* enforce read-only access to this chrdev */
 	if ((filp->f_mode & FMODE_READ) == 0)
 	if ((filp->f_mode & FMODE_READ) == 0)
 		return -EINVAL;
 		return -EINVAL;