projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b78032a
)
microcode: BKL pushdown
author
Arnd Bergmann
<arnd@arndb.de>
Tue, 20 May 2008 17:16:16 +0000
(19:16 +0200)
committer
Jonathan Corbet
<corbet@lwn.net>
Fri, 20 Jun 2008 20:05:59 +0000
(14:05 -0600)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/x86/kernel/microcode.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/microcode.c
b/arch/x86/kernel/microcode.c
index 69729e38b78a2d83e7f7e799bd2ea37730305d18..9f0a994eef9b1f0ba209cc1b3c4cd62e492d3097 100644
(file)
--- 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;
}