RE: [PATCH V11 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[AMD Official Use Only - General]

> -----Original Message-----
> From: Meng, Li (Jassmine) <Li.Meng@xxxxxxx>
> Sent: Wednesday, November 29, 2023 2:55 PM
> To: Rafael J . Wysocki <rafael.j.wysocki@xxxxxxxxx>; Huang, Ray
> <Ray.Huang@xxxxxxx>
> Cc: linux-pm@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; x86@xxxxxxxxxx;
> linux-acpi@xxxxxxxxxxxxxxx; Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>; linux-
> kselftest@xxxxxxxxxxxxxxx; Fontenot, Nathan <Nathan.Fontenot@xxxxxxx>;
> Sharma, Deepak <Deepak.Sharma@xxxxxxx>; Deucher, Alexander
> <Alexander.Deucher@xxxxxxx>; Limonciello, Mario
> <Mario.Limonciello@xxxxxxx>; Huang, Shimmer <Shimmer.Huang@xxxxxxx>;
> Yuan, Perry <Perry.Yuan@xxxxxxx>; Du, Xiaojian <Xiaojian.Du@xxxxxxx>;
> Viresh Kumar <viresh.kumar@xxxxxxxxxx>; Borislav Petkov <bp@xxxxxxxxx>;
> Oleksandr Natalenko <oleksandr@xxxxxxxxxxxxxx>; Meng, Li (Jassmine)
> <Li.Meng@xxxxxxx>
> Subject: [PATCH V11 1/7] 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 <oleksandr@xxxxxxxxxxxxxx>
> Reviewed-by: Mario Limonciello <mario.limonciello@xxxxxxx>
> Reviewed-by: Huang Rui <ray.huang@xxxxxxx>
> Signed-off-by: Meng Li <li.meng@xxxxxxx>
> ---
>  arch/x86/Kconfig | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index
> ad478a2b49e2..77b1af90f7a2 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
> --
> 2.34.1

Reviewed-by: Perry Yuan <perry.yuan@xxxxxxx >





[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux