diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-05-28 18:52:13 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-06-11 21:06:44 +0200 |
commit | a52641bc6293a24f25956a597e7f32148b0e2bb8 (patch) | |
tree | 4072e64c6d45ca89da601c3904911129ac7a7e2a /drivers/usb/cdns3/cdns3-debug.h | |
parent | 893bae92237d824334d68d6b67222aaf32e41458 (diff) | |
download | linux-a52641bc6293a24f25956a597e7f32148b0e2bb8.tar.gz linux-a52641bc6293a24f25956a597e7f32148b0e2bb8.tar.bz2 linux-a52641bc6293a24f25956a597e7f32148b0e2bb8.zip |
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 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions