summaryrefslogtreecommitdiff
path: root/drivers/cpuidle/cpuidle-cps.c
diff options
context:
space:
mode:
authorMaxim Mikityanskiy <maximmi@nvidia.com>2022-01-25 13:52:56 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2022-02-15 09:30:51 +0300
commited5f9cf06b20f74c1098d6d62313e3e9af217fcb (patch)
tree9fe9d102be4c69cc895d7c93ef513ac02007b86a /drivers/cpuidle/cpuidle-cps.c
parent62f7991feab69ed398ad6a03b911fa0ee0549516 (diff)
downloadlinux-ed5f9cf06b20f74c1098d6d62313e3e9af217fcb.tar.xz
net/mlx5e: Use READ_ONCE/WRITE_ONCE for DCBX trust state
trust_state can be written while mlx5e_select_queue() is reading it. To avoid inconsistencies, use READ_ONCE and WRITE_ONCE for access and updates, and touch the variable only once per operation. Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/cpuidle/cpuidle-cps.c')
0 files changed, 0 insertions, 0 deletions