locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_...
[linux-2.6-block.git] / tools / perf / util / auxtrace.h
index 33b5e6cdf38c8302727fe55446b8f24d8342084d..d19e11b68de728b95c2e427923475bdb3a877a26 100644 (file)
@@ -378,7 +378,7 @@ struct addr_filters {
 static inline u64 auxtrace_mmap__read_snapshot_head(struct auxtrace_mmap *mm)
 {
        struct perf_event_mmap_page *pc = mm->userpg;
-       u64 head = ACCESS_ONCE(pc->aux_head);
+       u64 head = READ_ONCE(pc->aux_head);
 
        /* Ensure all reads are done after we read the head */
        rmb();
@@ -389,7 +389,7 @@ static inline u64 auxtrace_mmap__read_head(struct auxtrace_mmap *mm)
 {
        struct perf_event_mmap_page *pc = mm->userpg;
 #if BITS_PER_LONG == 64 || !defined(HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT)
-       u64 head = ACCESS_ONCE(pc->aux_head);
+       u64 head = READ_ONCE(pc->aux_head);
 #else
        u64 head = __sync_val_compare_and_swap(&pc->aux_head, 0, 0);
 #endif