diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-03-25 20:03:25 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-04-02 13:57:04 +0300 |
commit | c626a438452079824139f97137f17af47b1a8989 (patch) | |
tree | 621dc1d2ca239b2c59b326f8ec71614f86f39b49 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 0940f1a8011fd69be5082015068e0dc31c800c20 (diff) | |
download | linux-c626a438452079824139f97137f17af47b1a8989.tar.xz |
cpufreq: intel_pstate: Rearrange show_no_turbo() and store_no_turbo()
Now that global.turbo_disabled can only change at the cpufreq driver
registration time, initialize global.no_turbo at that time too so they
are in sync to start with (if the former is set, the latter cannot be
updated later anyway).
That allows show_no_turbo() to be simlified because it does not need
to check global.turbo_disabled and store_no_turbo() can be rearranged
to avoid doing anything if the new value of global.no_turbo is equal
to the current one and only return an error on attempts to clear
global.no_turbo when global.turbo_disabled.
While at it, eliminate the redundant ret variable from store_no_turbo().
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions