summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-10-10 09:35:48 +0200
committerThomas Gleixner <tglx@linutronix.de>2009-10-14 17:04:48 +0200
commitac06ea2cd06291e63951b51dd7c9a23e6a1f2683 (patch)
tree7aeb63a63796129736ee7ca96a580bca769ba941
parent98272ed0d2e6509fe7dc571e77956c99bf653bb6 (diff)
downloadop-kernel-dev-ac06ea2cd06291e63951b51dd7c9a23e6a1f2683.zip
op-kernel-dev-ac06ea2cd06291e63951b51dd7c9a23e6a1f2683.tar.gz
x86: Remove BKL from microcode
cycle_lock_kernel() in microcode_open() is a worthless exercise as there is nothing to wait for. Remove it. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> LKML-Reference: <20091010153349.196074920@linutronix.de>
-rw-r--r--arch/x86/kernel/microcode_core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kernel/microcode_core.c b/arch/x86/kernel/microcode_core.c
index 378e9a8..2bcad39 100644
--- a/arch/x86/kernel/microcode_core.c
+++ b/arch/x86/kernel/microcode_core.c
@@ -73,7 +73,6 @@
#include <linux/platform_device.h>
#include <linux/miscdevice.h>
#include <linux/capability.h>
-#include <linux/smp_lock.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mutex.h>
@@ -201,7 +200,6 @@ static int do_microcode_update(const void __user *buf, size_t size)
static int microcode_open(struct inode *unused1, struct file *unused2)
{
- cycle_kernel_lock();
return capable(CAP_SYS_RAWIO) ? 0 : -EPERM;
}
OpenPOWER on IntegriCloud