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:

committed by
Ingo Molnar

parent
fa5881514e
commit
6d1acfd5c6
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user