x86/microcode: Correct Kconfig dependencies
authorBorislav Petkov <bp@suse.de>
Sun, 13 Oct 2013 16:36:29 +0000 (18:36 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 14 Oct 2013 07:24:27 +0000 (09:24 +0200)
I have a randconfig here which has enabled only

  CONFIG_MICROCODE=y
  CONFIG_MICROCODE_OLD_INTERFACE=y

with both

  # CONFIG_MICROCODE_INTEL is not set
  # CONFIG_MICROCODE_AMD is not set

off. Which makes building the microcode functionality a little
pointless. Don't do that in such cases then.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1381682189-14470-1-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/Kconfig

index 145d703227bf63542560df60a842d2b8aa0f1f7c..f67e839f06c845e406d81c8b2be285ced8b57448 100644 (file)
@@ -1033,6 +1033,7 @@ config X86_REBOOTFIXUPS
 
 config MICROCODE
        tristate "CPU microcode loading support"
+       depends on CPU_SUP_AMD || CPU_SUP_INTEL
        select FW_LOADER
        ---help---