summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/microcode_intel.h
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2014-12-03 17:21:41 +0100
committerBorislav Petkov <bp@suse.de>2014-12-06 13:03:03 +0100
commitfbae4ba8c4a387e306adc9c710e5c225cece7678 (patch)
tree661e543af2cab13c77b21519d49534e51e319fbd /arch/x86/include/asm/microcode_intel.h
parenta18a0f6850d4b286a5ebf02cd5b22fe496b86349 (diff)
downloadlinux-0-day-fbae4ba8c4a387e306adc9c710e5c225cece7678.tar.gz
linux-0-day-fbae4ba8c4a387e306adc9c710e5c225cece7678.tar.xz
x86, microcode: Reload microcode on resume
Normally, we do reapply microcode on resume. However, in the cases where that microcode comes from the early loader and the late loader hasn't been utilized yet, there's no easy way for us to go and apply the patch applied during boot by the early loader. Thus, reuse the patch stashed by the early loader for the BSP. Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'arch/x86/include/asm/microcode_intel.h')
-rw-r--r--arch/x86/include/asm/microcode_intel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/microcode_intel.h b/arch/x86/include/asm/microcode_intel.h
index bbe296e0bce19..dd4c20043ce75 100644
--- a/arch/x86/include/asm/microcode_intel.h
+++ b/arch/x86/include/asm/microcode_intel.h
@@ -68,11 +68,13 @@ extern void __init load_ucode_intel_bsp(void);
extern void load_ucode_intel_ap(void);
extern void show_ucode_info_early(void);
extern int __init save_microcode_in_initrd_intel(void);
+void reload_ucode_intel(void);
#else
static inline __init void load_ucode_intel_bsp(void) {}
static inline void load_ucode_intel_ap(void) {}
static inline void show_ucode_info_early(void) {}
static inline int __init save_microcode_in_initrd_intel(void) { return -EINVAL; }
+static inline void reload_ucode_intel(void) {}
#endif
#if defined(CONFIG_MICROCODE_INTEL_EARLY) && defined(CONFIG_HOTPLUG_CPU)