diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-05-28 19:52:13 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-06-11 22:06:44 +0300 |
commit | a52641bc6293a24f25956a597e7f32148b0e2bb8 (patch) | |
tree | 4072e64c6d45ca89da601c3904911129ac7a7e2a /scripts/gdb/linux/utils.py | |
parent | 893bae92237d824334d68d6b67222aaf32e41458 (diff) | |
download | linux-a52641bc6293a24f25956a597e7f32148b0e2bb8.tar.xz |
thermal: trip: Use READ_ONCE() for lockless access to trip properties
When accessing trip temperature and hysteresis without locking, it is
better to use READ_ONCE() to prevent compiler optimizations possibly
affecting the read from being applied.
Of course, for the READ_ONCE() to be effective, WRITE_ONCE() needs to
be used when updating their values.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions