mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 01:08:50 +00:00
[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>
This commit is contained in:
parent
6215762064
commit
9ee7fd9c60
@ -33,7 +33,6 @@
|
|||||||
#include <linux/adb.h>
|
#include <linux/adb.h>
|
||||||
#include <linux/pmu.h>
|
#include <linux/pmu.h>
|
||||||
#include <linux/cuda.h>
|
#include <linux/cuda.h>
|
||||||
#include <linux/smp_lock.h>
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/spinlock.h>
|
#include <linux/spinlock.h>
|
||||||
#include <linux/pm.h>
|
#include <linux/pm.h>
|
||||||
@ -2547,7 +2546,6 @@ pmu_release(struct inode *inode, struct file *file)
|
|||||||
struct pmu_private *pp = file->private_data;
|
struct pmu_private *pp = file->private_data;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
lock_kernel();
|
|
||||||
if (pp != 0) {
|
if (pp != 0) {
|
||||||
file->private_data = NULL;
|
file->private_data = NULL;
|
||||||
spin_lock_irqsave(&all_pvt_lock, flags);
|
spin_lock_irqsave(&all_pvt_lock, flags);
|
||||||
@ -2561,7 +2559,6 @@ pmu_release(struct inode *inode, struct file *file)
|
|||||||
|
|
||||||
kfree(pp);
|
kfree(pp);
|
||||||
}
|
}
|
||||||
unlock_kernel();
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user