summaryrefslogtreecommitdiffstats
path: root/kernel/events/internal.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2017-08-16 18:18:16 +0200
committerIngo Molnar <mingo@kernel.org>2017-08-25 11:04:15 +0200
commit2ab346cfb0decf01523949e29f5cf542f2304611 (patch)
tree2ea85f9604be0047ca6c6a66eb0768d1f91215cc /kernel/events/internal.h
parentMerge branch 'perf/urgent' into perf/core, to pick up fixes (diff)
downloadlinux-2ab346cfb0decf01523949e29f5cf542f2304611.tar.xz
linux-2ab346cfb0decf01523949e29f5cf542f2304611.zip
perf/aux: Make aux_{head,wakeup} ring_buffer members long
The aux_head and aux_wakeup members of struct ring_buffer are defined using the local_t type, despite the fact that they are only accessed via the perf_aux_output_*() functions, which cannot race with each other for a given ring buffer. This patch changes the type of the members to long, so we can avoid using the local_*() API where it isn't needed. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/1502900297-21839-1-git-send-email-will.deacon@arm.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/events/internal.h')
-rw-r--r--kernel/events/internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/events/internal.h b/kernel/events/internal.h
index 486fd78eb8d5..2941b868353c 100644
--- a/kernel/events/internal.h
+++ b/kernel/events/internal.h
@@ -38,9 +38,9 @@ struct ring_buffer {
struct user_struct *mmap_user;
/* AUX area */
- local_t aux_head;
+ long aux_head;
local_t aux_nest;
- local_t aux_wakeup;
+ long aux_wakeup;
unsigned long aux_pgoff;
int aux_nr_pages;
int aux_overwrite;