summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-11-14 06:07:56 +1100
committerPaul Mackerras <paulus@samba.org>2007-12-03 13:56:26 +1100
commit9ee7fd9c605247baf81d196ade090698a0759e9c (patch)
tree0eaeb4a077299278a473cb5366bd44bfc30708e9 /drivers/macintosh
parent6215762064311efea0618c9496cc6360cd75243d (diff)
downloadblackbird-op-linux-9ee7fd9c605247baf81d196ade090698a0759e9c.tar.gz
blackbird-op-linux-9ee7fd9c605247baf81d196ade090698a0759e9c.zip
[POWERPC] PMU: Don't lock_kernel()
I see nothing that this lock_kernel() actually protects against, so remove it. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/macintosh')
-rw-r--r--drivers/macintosh/via-pmu.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c
index dc741d3a4531..6886814b1e65 100644
--- a/drivers/macintosh/via-pmu.c
+++ b/drivers/macintosh/via-pmu.c
@@ -33,7 +33,6 @@
#include <linux/adb.h>
#include <linux/pmu.h>
#include <linux/cuda.h>
-#include <linux/smp_lock.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/pm.h>
@@ -2547,7 +2546,6 @@ pmu_release(struct inode *inode, struct file *file)
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);
@@ -2561,7 +2559,6 @@ pmu_release(struct inode *inode, struct file *file)
kfree(pp);
}
- unlock_kernel();
return 0;
}
OpenPOWER on IntegriCloud