summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorIonela Voinescu <ionela.voinescu@arm.com>2024-08-27 18:48:18 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2025-02-17 21:05:39 +0300
commit004b500a9031973ba0d05edca860193f9a5938df (patch)
treeed8150fc059ae4a5fef03c8204062105afe550b0 /tools/perf/scripts/python/export-to-postgresql.py
parent0ad2507d5d93f39619fc42372c347d6006b64319 (diff)
downloadlinux-004b500a9031973ba0d05edca860193f9a5938df.tar.xz
arch_topology: init capacity_freq_ref to 0
It's useful to have capacity_freq_ref initialized to 0 for users of arch_scale_freq_ref() to detect when capacity_freq_ref was not yet set. The only scenario affected by this change in the init value is when a cpufreq driver is never loaded. As a result, the only setter of a cpu scale factor remains the call of topology_normalize_cpu_scale() from parse_dt_topology(). There we cannot use the value 0 of capacity_freq_ref so we have to compensate for its uninitialized state. Signed-off-by: Ionela Voinescu <ionela.voinescu@arm.com> Signed-off-by: Beata Michalska <beata.michalska@arm.com> Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Link: https://lore.kernel.org/r/20240827154818.1195849-1-ionela.voinescu@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions