]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
parisc: remove big kernel lock
authorArnd Bergmann <arnd@arndb.de>
Sat, 11 Sep 2010 16:24:46 +0000 (18:24 +0200)
committerArnd Bergmann <arnd@arndb.de>
Sat, 16 Oct 2010 20:43:08 +0000 (22:43 +0200)
The parisc version of the perf code is sufficiently
protected by its own spinlock, no need to use the BKL.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Helge Deller <deller@gmx.de>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Cc: linux-parisc@vger.kernel.org
arch/parisc/kernel/perf.c

index f9f6783e4bdd207f3266970e6fbb422bdf6b1f08..ba0c053e25ae9d66cf536ab87ce1cca9eef53dbf 100644 (file)
@@ -46,7 +46,6 @@
 #include <linux/init.h>
 #include <linux/proc_fs.h>
 #include <linux/miscdevice.h>
-#include <linux/smp_lock.h>
 #include <linux/spinlock.h>
 
 #include <asm/uaccess.h>
@@ -261,16 +260,13 @@ printk("Preparing to start counters\n");
  */
 static int perf_open(struct inode *inode, struct file *file)
 {
-       lock_kernel();
        spin_lock(&perf_lock);
        if (perf_enabled) {
                spin_unlock(&perf_lock);
-               unlock_kernel();
                return -EBUSY;
        }
        perf_enabled = 1;
        spin_unlock(&perf_lock);
-       unlock_kernel();
 
        return 0;
 }