diff options
author | Arnd Bergmann <arnd@arndb.de> | 2008-05-20 19:16:16 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-06-20 22:05:59 +0200 |
commit | 77149367dade50af8370420265bd4f818cde8afd (patch) | |
tree | 015b152e8e6c772d23be303bd83b1dd0a40ce08b /arch/x86/kernel/microcode.c | |
parent | message-i2o-i2o_config: BKL pushdown (diff) | |
download | linux-77149367dade50af8370420265bd4f818cde8afd.tar.xz linux-77149367dade50af8370420265bd4f818cde8afd.zip |
microcode: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to '')
-rw-r--r-- | arch/x86/kernel/microcode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/microcode.c b/arch/x86/kernel/microcode.c index 69729e38b78a..9f0a994eef9b 100644 --- a/arch/x86/kernel/microcode.c +++ b/arch/x86/kernel/microcode.c @@ -75,6 +75,7 @@ #include <linux/kernel.h> #include <linux/init.h> #include <linux/sched.h> +#include <linux/smp_lock.h> #include <linux/cpumask.h> #include <linux/module.h> #include <linux/slab.h> @@ -422,6 +423,7 @@ out: static int microcode_open (struct inode *unused1, struct file *unused2) { + cycle_kernel_lock(); return capable(CAP_SYS_RAWIO) ? 0 : -EPERM; } |