x86/microcode: Hide the config knob
In reality CONFIG_MICROCODE is enabled in any reasonable configuration when Intel or AMD support is enabled. Accommodate to reality. Suggested-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20230812195727.660453052@linutronix.de
This commit is contained in:
committed by
Borislav Petkov (AMD)
parent
e5a8192942
commit
e6bcfdd75d
@@ -54,16 +54,16 @@ struct ucode_cpu_info {
|
||||
extern struct ucode_cpu_info ucode_cpu_info[];
|
||||
struct cpio_data find_microcode_in_initrd(const char *path, bool use_pa);
|
||||
|
||||
#ifdef CONFIG_MICROCODE_INTEL
|
||||
#ifdef CONFIG_CPU_SUP_INTEL
|
||||
extern struct microcode_ops * __init init_intel_microcode(void);
|
||||
#else
|
||||
static inline struct microcode_ops * __init init_intel_microcode(void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#endif /* CONFIG_MICROCODE_INTEL */
|
||||
#endif /* CONFIG_CPU_SUP_INTEL */
|
||||
|
||||
#ifdef CONFIG_MICROCODE_AMD
|
||||
#ifdef CONFIG_CPU_SUP_AMD
|
||||
extern struct microcode_ops * __init init_amd_microcode(void);
|
||||
extern void __exit exit_amd_microcode(void);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user