diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-03-25 20:04:24 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-04-02 13:57:10 +0300 |
commit | 9558fae8ce97b3b320b387dd7c88309df2c36d4d (patch) | |
tree | 28495baa479aa16046faafc66d67884ca330241e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | c626a438452079824139f97137f17af47b1a8989 (diff) | |
download | linux-9558fae8ce97b3b320b387dd7c88309df2c36d4d.tar.xz |
cpufreq: intel_pstate: Read global.no_turbo under READ_ONCE()
Because global.no_turbo is generally not read under intel_pstate_driver_lock
make store_no_turbo() use WRITE_ONCE() for updating it (this is the only
place at which it is updated except for the initialization) and make the
majority of places reading it use READ_ONCE().
Also remove redundant global.turbo_disabled checks from places that
depend on the 'true' value of global.no_turbo because it can only be
'true' if global.turbo_disabled is also 'true'.
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