summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/microcode.h
diff options
context:
space:
mode:
authorAshok Raj <ashok.raj@intel.com>2023-08-12 21:58:42 +0200
committerBorislav Petkov (AMD) <bp@alien8.de>2023-08-13 18:42:55 +0200
commit82ad097b02b6ab7985375b925efd06ac042caf1d (patch)
treec350720f344c8eff2cdcbadc54090646044d75d7 /arch/x86/include/asm/microcode.h
parent4da2131fac10b6928da0b2e39b65189203810f44 (diff)
downloadlwn-82ad097b02b6ab7985375b925efd06ac042caf1d.tar.gz
lwn-82ad097b02b6ab7985375b925efd06ac042caf1d.zip
x86/microcode: Include vendor headers into microcode.h
Currently vendor specific headers are included explicitly when used in common code. Instead, include the vendor specific headers in microcode.h, and include that in all usages. No functional change. Suggested-by: Boris Petkov <bp@alien8.de> Signed-off-by: Ashok Raj <ashok.raj@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20230812195727.776541545@linutronix.de
Diffstat (limited to 'arch/x86/include/asm/microcode.h')
-rw-r--r--arch/x86/include/asm/microcode.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/include/asm/microcode.h b/arch/x86/include/asm/microcode.h
index 0deab6c96d02..9c713b74b1b4 100644
--- a/arch/x86/include/asm/microcode.h
+++ b/arch/x86/include/asm/microcode.h
@@ -2,10 +2,13 @@
#ifndef _ASM_X86_MICROCODE_H
#define _ASM_X86_MICROCODE_H
-#include <asm/cpu.h>
#include <linux/earlycpio.h>
#include <linux/initrd.h>
+#include <asm/cpu.h>
+#include <asm/microcode_amd.h>
+#include <asm/microcode_intel.h>
+
struct ucode_patch {
struct list_head plist;
void *data; /* Intel uses only this one */