]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpufreq/cppc: Set the frequency used for computing the capacity
authorVincent Guittot <vincent.guittot@linaro.org>
Mon, 11 Dec 2023 10:48:54 +0000 (11:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:42 +0000 (16:28 +0200)
commitcf4faefd3a7b787d2c864b118a4ac4b1d5f69f6a
tree002f3fa1c5b1f3b1110f74630b70cde5d69e44f0
parent11da2b1ae4c9b41c9fb207ed659d71592e9c52d6
cpufreq/cppc: Set the frequency used for computing the capacity

commit 5477fa249b56c59c3baa1b237bf083cffa64c84a upstream.

Save the frequency associated to the performance that has been used when
initializing the capacity of CPUs.

Also, cppc cpufreq driver can register an artificial energy model. In such
case, it needs the frequency for this compute capacity.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Pierre Gondois <pierre.gondois@arm.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20231211104855.558096-7-vincent.guittot@linaro.org
Stable-dep-of: e37617c8e53a ("sched/fair: Fix frequency selection for non-invariant case")
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/arch_topology.c