diff options
author | Alexandre Ghiti <[email protected]> | 2023-12-13 21:29:58 +0100 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2023-12-20 10:48:12 -0800 |
commit | c30fa83b49897e708a52e122dd10616a52a4c82b (patch) | |
tree | 215c4b9d87a37bafa00fad4d43b34b4413032628 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) |
riscv: Use WRITE_ONCE() when setting page table entries
To avoid any compiler "weirdness" when accessing page table entries which
are concurrently modified by the HW, let's use WRITE_ONCE() macro
(commit 20a004e7b017 ("arm64: mm: Use READ_ONCE/WRITE_ONCE when accessing
page tables") gives a great explanation with more details).
Signed-off-by: Alexandre Ghiti <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions