x86/fred: Disable FRED support if CONFIG_X86_FRED is disabled
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Tue, 5 Dec 2023 10:49:56 +0000 (02:49 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 25 Jan 2024 18:10:30 +0000 (19:10 +0100)
commite554a8ca49d6d6d782f546ae4d7f036946e7dd87
treee8cbf5ff8c576b3e2685c4011cb3a916c3b8fb8d
parent51c158f7aaccc6f6423a61a1df4a0d4c0d9d22a9
x86/fred: Disable FRED support if CONFIG_X86_FRED is disabled

Add CONFIG_X86_FRED to <asm/disabled-features.h> to make
cpu_feature_enabled() work correctly with FRED.

Originally-by: Megha Dey <megha.dey@intel.com>
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Signed-off-by: Xin Li <xin3.li@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Shan Kang <shan.kang@intel.com>
Link: https://lore.kernel.org/r/20231205105030.8698-8-xin3.li@intel.com
arch/x86/include/asm/disabled-features.h
tools/arch/x86/include/asm/disabled-features.h