From: Meng Li
Date: Fri, 19 Jan 2024 09:04:56 +0000 (+0800)
Subject: x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3598e577d1290008dcc753a015675fe617cdde45;p=linux.git
x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion
amd-pstate driver also uses SCHED_MC_PRIO, so decouple the requirement
of CPU_SUP_INTEL from the dependencies to allow compilation in kernels
without Intel CPU support.
Tested-by: Oleksandr Natalenko
Reviewed-by: Mario Limonciello
Reviewed-by: Huang Rui
Reviewed-by: Perry Yuan
Signed-off-by: Meng Li
Acked-by: Borislav Petkov (AMD)
Signed-off-by: Rafael J. Wysocki
---
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 5edec175b9bfc..29d110285438b 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1054,8 +1054,9 @@ config SCHED_MC
config SCHED_MC_PRIO
bool "CPU core priorities scheduler support"
- depends on SCHED_MC && CPU_SUP_INTEL
- select X86_INTEL_PSTATE
+ depends on SCHED_MC
+ select X86_INTEL_PSTATE if CPU_SUP_INTEL
+ select X86_AMD_PSTATE if CPU_SUP_AMD && ACPI
select CPU_FREQ
default y
help