summaryrefslogtreecommitdiffstats
path: root/arch/um/drivers
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-10-10 15:36:30 +0000
committerThomas Gleixner <tglx@linutronix.de>2009-10-14 15:35:51 +0200
commitdf502e389383b219e44819fe757614450d95f297 (patch)
tree4fcb590c731288584e07bd9c985a3eebc78e1f2c /arch/um/drivers
parentca1b82ba0888e742a7efdb89ed8e2aab453e091f (diff)
downloadlinux-stable-df502e389383b219e44819fe757614450d95f297.tar.gz
linux-stable-df502e389383b219e44819fe757614450d95f297.tar.bz2
linux-stable-df502e389383b219e44819fe757614450d95f297.zip
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>
Diffstat (limited to 'arch/um/drivers')
-rw-r--r--arch/um/drivers/random.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/um/drivers/random.c b/arch/um/drivers/random.c
index 6eabb7022a2d..4949044773ba 100644
--- a/arch/um/drivers/random.c
+++ b/arch/um/drivers/random.c
@@ -7,7 +7,6 @@
* of the GNU General Public License, incorporated herein by reference.
*/
#include <linux/sched.h>
-#include <linux/smp_lock.h>
#include <linux/module.h>
#include <linux/fs.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)
{
- cycle_kernel_lock();
-
/* enforce read-only access to this chrdev */
if ((filp->f_mode & FMODE_READ) == 0)
return -EINVAL;