diff options
author | Borislav Petkov <bp@suse.de> | 2014-12-03 19:21:41 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2014-12-06 15:03:03 +0300 |
commit | fbae4ba8c4a387e306adc9c710e5c225cece7678 (patch) | |
tree | 661e543af2cab13c77b21519d49534e51e319fbd /arch/x86/include/asm/microcode.h | |
parent | a18a0f6850d4b286a5ebf02cd5b22fe496b86349 (diff) | |
download | linux-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.h')
-rw-r--r-- | arch/x86/include/asm/microcode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/microcode.h b/arch/x86/include/asm/microcode.h index 64dc362506b7..201b520521ed 100644 --- a/arch/x86/include/asm/microcode.h +++ b/arch/x86/include/asm/microcode.h @@ -78,6 +78,7 @@ static inline void __exit exit_amd_microcode(void) {} extern void __init load_ucode_bsp(void); extern void load_ucode_ap(void); extern int __init save_microcode_in_initrd(void); +void reload_early_microcode(void); #else static inline void __init load_ucode_bsp(void) {} static inline void load_ucode_ap(void) {} @@ -85,6 +86,7 @@ static inline int __init save_microcode_in_initrd(void) { return 0; } +static inline void reload_early_microcode(void) {} #endif #endif /* _ASM_X86_MICROCODE_H */ |