From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sipsolutions.net (crystal.sipsolutions.net [195.210.38.204]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id AF23FDDF8F for ; Fri, 9 Nov 2007 01:36:15 +1100 (EST) Subject: [RFC] PMU: don't lock_kernel() From: Johannes Berg To: Benjamin Herrenschmidt Content-Type: text/plain Date: Thu, 08 Nov 2007 13:01:23 +0100 Message-Id: <1194523283.6294.9.camel@johannes.berg> Mime-Version: 1.0 Cc: linuxppc-dev list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , I see nothing that this lock_kernel() actually protects against so remove it. Signed-off-by: Johannes Berg Cc: Benjamin Herrenschmidt --- drivers/macintosh/via-pmu.c | 3 --- 1 file changed, 3 deletions(-) --- everything.orig/drivers/macintosh/via-pmu.c 2007-11-08 11:48:37.192845813 +0100 +++ everything/drivers/macintosh/via-pmu.c 2007-11-08 11:48:48.292846681 +0100 @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include @@ -2436,7 +2435,6 @@ pmu_release(struct inode *inode, struct struct pmu_private *pp = file->private_data; unsigned long flags; - lock_kernel(); if (pp != 0) { file->private_data = NULL; spin_lock_irqsave(&all_pvt_lock, flags); @@ -2450,7 +2448,6 @@ pmu_release(struct inode *inode, struct kfree(pp); } - unlock_kernel(); return 0; }