Skip to content

Commit

Permalink
x86/microcode: Add explicit CPU vendor dependency
Browse files Browse the repository at this point in the history
[ Upstream commit 9c55d99 ]

Add an explicit dependency to the respective CPU vendor so that the
respective microcode support for it gets built only when that support is
enabled.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/8ead0da9-9545-b10d-e3db-7df1a1f219e4@infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Borislav Petkov authored and gregkh committed Jun 9, 2022
1 parent f29fb46 commit 76744a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ config MICROCODE

config MICROCODE_INTEL
bool "Intel microcode loading support"
depends on MICROCODE
depends on CPU_SUP_INTEL && MICROCODE
default MICROCODE
help
This options enables microcode patch loading support for Intel
Expand All @@ -1333,7 +1333,7 @@ config MICROCODE_INTEL

config MICROCODE_AMD
bool "AMD microcode loading support"
depends on MICROCODE
depends on CPU_SUP_AMD && MICROCODE
help
If you select this option, microcode patch loading support for AMD
processors will be enabled.
Expand Down

0 comments on commit 76744a0

Please sign in to comment.