summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-03-25 20:03:25 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-04-02 13:57:04 +0300
commitc626a438452079824139f97137f17af47b1a8989 (patch)
tree621dc1d2ca239b2c59b326f8ec71614f86f39b49 /tools/perf/scripts/python/export-to-postgresql.py
parent0940f1a8011fd69be5082015068e0dc31c800c20 (diff)
downloadlinux-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-postgresql.py')
0 files changed, 0 insertions, 0 deletions