提交 9ee7fd9c 编写于 作者: J Johannes Berg 提交者: Paul Mackerras

[POWERPC] PMU: Don't lock_kernel()

I see nothing that this lock_kernel() actually protects against,
so remove it.
Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 62157620
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册