Skip to content

Commit

Permalink
hw_random: Remove BKL from core
Browse files Browse the repository at this point in the history
hw_random core is completely serialized with rng_mutex. No need for
the cycle_kernel_lock() magic.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <20091010153349.844488872@linutronix.de>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Thomas Gleixner committed Oct 14, 2009
1 parent 95fdac7 commit a09ba31
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/char/hw_random/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ static int rng_dev_open(struct inode *inode, struct file *filp)
return -EINVAL;
if (filp->f_mode & FMODE_WRITE)
return -EINVAL;
cycle_kernel_lock();
return 0;
}

Expand Down

0 comments on commit a09ba31

Please sign in to comment.