From: Thomas Gleixner Date: Sat, 10 Oct 2009 10:36:32 +0000 (+0200) Subject: hw_random: Remove BKL from core X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a09ba31a54dbc9a548c4ff90619e4c7128a4282e;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git hw_random: Remove BKL from core hw_random core is completely serialized with rng_mutex. No need for the cycle_kernel_lock() magic. Signed-off-by: Thomas Gleixner LKML-Reference: <20091010153349.844488872@linutronix.de> Cc: Herbert Xu --- diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index 1573aebd54b..75fb859a50b 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/hw_random/core.c @@ -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; }