x86: Remove BKL from microcode
authorThomas Gleixner <tglx@linutronix.de>
Sat, 10 Oct 2009 07:35:48 +0000 (09:35 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 14 Oct 2009 15:04:48 +0000 (17:04 +0200)
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>

arch/x86/kernel/microcode_core.c

index 378e9a8f1bf8b1b338104b822afc74ed18ce0823..2bcad3926edbd4dc17d1ba8ae255f130ba83ff2a 100644 (file)
@@ -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;
 }