perf: Optimize ring-buffer write by depending on control dependencies
authorPeter Zijlstra <peterz@infradead.org>
Mon, 25 Nov 2013 10:49:10 +0000 (11:49 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 11 Dec 2013 14:53:22 +0000 (15:53 +0100)
commitc7f2e3cd6c1f4932ccc4135d050eae3f7c7aef63
tree3957a8a7ca4c1196b4e6a875b303fcbaa3c827e1
parent813932149e7847c91f544a03b943a84c5b264f76
perf: Optimize ring-buffer write by depending on control dependencies

Remove a full barrier from the ring-buffer write path by relying on
a control dependency to order a LOAD -> STORE scenario.

Cc: "Paul E. McKenney" <paulmck@us.ibm.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-8alv40z6ikk57jzbaobnxrjl@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/ring_buffer.c