diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-11-04 19:51:28 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-11-04 22:51:10 +0100 |
commit | a97e293e077a3e8f41e8972e593b34d0052b9e25 (patch) | |
tree | c50a8db9203aaa1c4c448f50d679009d4bdc7b0d /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 59b723cd2adbac2a34fc8e12c74ae26ae45bf230 (diff) | |
download | linux-a97e293e077a3e8f41e8972e593b34d0052b9e25.tar.gz linux-a97e293e077a3e8f41e8972e593b34d0052b9e25.tar.bz2 linux-a97e293e077a3e8f41e8972e593b34d0052b9e25.zip |
cpufreq: intel_pstate: Clear hybrid_max_perf_cpu before driver registration
Modify intel_pstate_register_driver() to clear hybrid_max_perf_cpu
before calling cpufreq_register_driver(), so that asymmetric CPU
capacity scaling is not updated until hybrid_init_cpu_capacity_scaling()
runs down the road. This is done in preparation for a subsequent
change adding asymmetric CPU capacity computation to the CPU init path
to handle CPUs that are initially offline.
The information on whether or not hybrid_max_perf_cpu was NULL before
it has been cleared is passed to hybrid_init_cpu_capacity_scaling(),
so full initialization of CPU capacity scaling can be skipped if it
has been carried out already.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/4616631.LvFx2qVVIh@rjwysocki.net
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions