perf: Optimize perf_output_*() by avoiding local_xchg()
Since the x86 XCHG ins implies LOCK, avoid the use by using a sequence count instead. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
fa5881514e
commit
6d1acfd5c6
2 changed files with 3 additions and 1 deletions
|
@ -804,6 +804,7 @@ struct perf_output_handle {
|
|||
struct perf_mmap_data *data;
|
||||
unsigned long head;
|
||||
unsigned long offset;
|
||||
unsigned long wakeup;
|
||||
int nmi;
|
||||
int sample;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue