diff options
author | Borislav Petkov <bp@suse.de> | 2014-05-19 20:59:17 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2014-05-20 20:21:27 -0700 |
commit | 65cef1311d5d212fd3d48a43678536dc878ca288 (patch) | |
tree | 016bff3b97650be35dc3fac764116734a5d1d803 /arch/x86/kernel/cpu/microcode/core.c | |
parent | 1b1ded57a4f2f4420b4de7c395d1b841d8b3c41a (diff) | |
download | linux-65cef1311d5d212fd3d48a43678536dc878ca288.tar.gz linux-65cef1311d5d212fd3d48a43678536dc878ca288.tar.bz2 linux-65cef1311d5d212fd3d48a43678536dc878ca288.zip |
x86, microcode: Add a disable chicken bit
Add a cmdline param which disables the microcode loader. This is useful
mostly in debugging situations where we want to turn off microcode
loading, both early from the initrd and late, as a means to be able to
rule out its influence on the machine.
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1400525957-11525-3-git-send-email-bp@alien8.de
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/cpu/microcode/core.c')
-rw-r--r-- | arch/x86/kernel/cpu/microcode/core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c index 15c987698b0f..dd9d6190b08d 100644 --- a/arch/x86/kernel/cpu/microcode/core.c +++ b/arch/x86/kernel/cpu/microcode/core.c @@ -97,6 +97,9 @@ MODULE_LICENSE("GPL"); static struct microcode_ops *microcode_ops; +bool dis_ucode_ldr; +module_param(dis_ucode_ldr, bool, 0); + /* * Synchronization. * @@ -546,6 +549,9 @@ static int __init microcode_init(void) struct cpuinfo_x86 *c = &cpu_data(0); int error; + if (dis_ucode_ldr) + return 0; + if (c->x86_vendor == X86_VENDOR_INTEL) microcode_ops = init_intel_microcode(); else if (c->x86_vendor == X86_VENDOR_AMD) |