Skip to content

Commit

Permalink
x86: Remove BKL from microcode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Gleixner committed Oct 14, 2009
1 parent 98272ed commit ac06ea2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/x86/kernel/microcode_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit ac06ea2

Please sign in to comment.