]> git.baikalelectronics.ru Git - kernel.git/commit
x86/microcode: Add a parameter to microcode_check() to store CPU capabilities
authorAshok Raj <ashok.raj@intel.com>
Mon, 9 Jan 2023 15:35:50 +0000 (07:35 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:32:56 +0000 (09:32 +0100)
commit6f65b7eac8c85fc58c3d72a93bd5669bcac0d27b
tree7494a8f53f0da16b03b5cd56c0f90a94453ba692
parent6bc35ee771dddad6300af69b77daaa3a072249d3
x86/microcode: Add a parameter to microcode_check() to store CPU capabilities

[ Upstream commit 2de7236ba37ef37b7b9c44c63e01dec60e5bb367 ]

Add a parameter to store CPU capabilities before performing a microcode
update so that CPU capabilities can be compared before and after update.

  [ bp: Massage. ]

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230109153555.4986-2-ashok.raj@intel.com
Stable-dep-of: 84294b49754c ("x86/microcode: Check CPU capabilities after late microcode update correctly")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/microcode/core.c