diff options
author | Arnd Bergmann <arnd@arndb.de> | 2008-05-20 13:16:16 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-06-20 16:05:59 -0400 |
commit | 77149367dade50af8370420265bd4f818cde8afd (patch) | |
tree | 015b152e8e6c772d23be303bd83b1dd0a40ce08b /arch | |
parent | b78032a7e52995b42d231d0064358eef16c9a8cc (diff) |
microcode: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch')
-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 @@ | |||
75 | #include <linux/kernel.h> | 75 | #include <linux/kernel.h> |
76 | #include <linux/init.h> | 76 | #include <linux/init.h> |
77 | #include <linux/sched.h> | 77 | #include <linux/sched.h> |
78 | #include <linux/smp_lock.h> | ||
78 | #include <linux/cpumask.h> | 79 | #include <linux/cpumask.h> |
79 | #include <linux/module.h> | 80 | #include <linux/module.h> |
80 | #include <linux/slab.h> | 81 | #include <linux/slab.h> |
@@ -422,6 +423,7 @@ out: | |||
422 | 423 | ||
423 | static int microcode_open (struct inode *unused1, struct file *unused2) | 424 | static int microcode_open (struct inode *unused1, struct file *unused2) |
424 | { | 425 | { |
426 | cycle_kernel_lock(); | ||
425 | return capable(CAP_SYS_RAWIO) ? 0 : -EPERM; | 427 | return capable(CAP_SYS_RAWIO) ? 0 : -EPERM; |
426 | } | 428 | } |
427 | 429 | ||