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

s390: Remove BKL from prng

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>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
LKML-Reference: <20091010153349.601625576@linutronix.de>
Acked-by: Jan Glauber <jang@linux.vnet.ibm.com>

-2
-2
arch/s390/crypto/prng.c
··· 6 6 #include <linux/fs.h> 7 7 #include <linux/init.h> 8 8 #include <linux/kernel.h> 9 - #include <linux/smp_lock.h> 10 9 #include <linux/miscdevice.h> 11 10 #include <linux/module.h> 12 11 #include <linux/moduleparam.h> ··· 48 49 49 50 static int prng_open(struct inode *inode, struct file *file) 50 51 { 51 - cycle_kernel_lock(); 52 52 return nonseekable_open(inode, file); 53 53 } 54 54