Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-3
-3
arch/um/drivers/random.c
··· 7 7 * of the GNU General Public License, incorporated herein by reference. 8 8 */ 9 9 #include <linux/sched.h> 10 - #include <linux/smp_lock.h> 11 10 #include <linux/module.h> 12 11 #include <linux/fs.h> 13 12 #include <linux/interrupt.h> ··· 33 34 34 35 static int rng_dev_open (struct inode *inode, struct file *filp) 35 36 { 36 - cycle_kernel_lock(); 37 - 38 37 /* enforce read-only access to this chrdev */ 39 38 if ((filp->f_mode & FMODE_READ) == 0) 40 39 return -EINVAL;