From: Arnd Bergmann Date: Sat, 11 Sep 2010 16:24:46 +0000 (+0200) Subject: parisc: remove big kernel lock X-Git-Tag: v2.6.37-rc1~176^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa0d4c26be9f989816b30626f6c67d9e7ef867f8;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git parisc: remove big kernel lock 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 Cc: Kyle McMartin Cc: Helge Deller Cc: "James E.J. Bottomley" Cc: linux-parisc@vger.kernel.org --- diff --git a/arch/parisc/kernel/perf.c b/arch/parisc/kernel/perf.c index f9f6783..ba0c053 100644 --- a/arch/parisc/kernel/perf.c +++ b/arch/parisc/kernel/perf.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include @@ -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; }