]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Optimize perf_output_*() by avoiding local_xchg()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 18 May 2010 09:12:48 +0000 (11:12 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 18 May 2010 16:35:49 +0000 (18:35 +0200)
commit05b49f18aaec52a561861b41d004c7ea4d8550ea
treeabcfa95947cafc94c978a255b814472fe67cad22
parentea391045ea31f940c5ebf4831d593494e0ef7f58
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>
include/linux/perf_event.h
kernel/perf_event.c