]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq: intel_pstate: hybrid: Adjust energy model rules
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 16 Oct 2025 16:22:13 +0000 (18:22 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Oct 2025 19:22:21 +0000 (21:22 +0200)
commitd852b6f67b71dd22cd2af8ee29306eccbd6c06bf
tree0268d51b5a5bd9975114b9c1eecc8f73d8c16a2b
parentc17add73498245bd94cb8a05345c73366606e671
cpufreq: intel_pstate: hybrid: Adjust energy model rules

Instead of using HWP-to-frequency scaling factors for computing cost
coefficients in the energy model used on hybrid systems, which is
fragile, rely on CPU type information that is easily accessible now and
the information on whether or not L3 cache is present for this purpose.

This also allows the cost coefficients for P-cores to be adjusted so
that they start to be populated somewhat earlier (that is, before
E-cores are loaded up to their full capacity).

In addition to the above, replace an inaccurate comment regarding the
reason why the freq value is added to the cost in hybrid_get_cost().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Reviewed-by: Yaxiong Tian <tianyaxiong@kylinos.cn>
Link: https://patch.msgid.link/5932894.DvuYhMxLoT@rafael.j.wysocki
drivers/cpufreq/intel_pstate.c