Skip to content

Commit

Permalink
[POWERPC] PMU: Don't lock_kernel()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and Paul Mackerras committed Dec 3, 2007
1 parent 6215762 commit 9ee7fd9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/macintosh/via-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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);
Expand All @@ -2561,7 +2559,6 @@ pmu_release(struct inode *inode, struct file *file)

kfree(pp);
}
unlock_kernel();
return 0;
}

Expand Down

0 comments on commit 9ee7fd9

Please sign in to comment.