aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorI Hsin Cheng <[email protected]>2024-05-26 22:01:39 +0800
committerAndrew Morton <[email protected]>2024-06-24 22:25:04 -0700
commit7abcb84f953df037d40fad66f2109db318dd155b (patch)
tree1cd5ef60431a65ba37789a26e977658b2e059a7c /tools/perf/scripts/python
parent87beb66918f83700c8cfe8309b64b80dc48c6ef5 (diff)
lib/plist.c: enforce memory ordering in plist_check_list
There exists an iteration over a plist in plist_check_list(), and memory dependency exists between variables "prev", "next" and "prev->next". As plist is used in the scheduling subsystem, we should guarantee the memory ordering between multiple processors. Using macro "WRITE_ONCE()" can help us to ensure the memory ordering as it was stated in "Documentation/memory-barriers.txt". Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: I Hsin Cheng <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions