lkml.org 
[lkml]   [2009]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 13/28] 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>
    ---
    arch/s390/crypto/prng.c | 2 --
    1 file changed, 2 deletions(-)

    Index: linux-2.6-tip/arch/s390/crypto/prng.c
    ===================================================================
    --- linux-2.6-tip.orig/arch/s390/crypto/prng.c
    +++ linux-2.6-tip/arch/s390/crypto/prng.c
    @@ -6,7 +6,6 @@
    #include <linux/fs.h>
    #include <linux/init.h>
    #include <linux/kernel.h>
    -#include <linux/smp_lock.h>
    #include <linux/miscdevice.h>
    #include <linux/module.h>
    #include <linux/moduleparam.h>
    @@ -49,7 +48,6 @@ static unsigned char parm_block[32] = {

    static int prng_open(struct inode *inode, struct file *file)
    {
    - cycle_kernel_lock();
    return nonseekable_open(inode, file);
    }




    \
     
     \ /
      Last update: 2009-10-10 18:15    [W:0.024 / U:0.144 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site