ring-buffer: move code around to remove some branches
authorSteven Rostedt <srostedt@redhat.com>
Tue, 12 May 2009 02:11:05 +0000 (22:11 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 12 May 2009 03:33:06 +0000 (23:33 -0400)
commit168b6b1d0594c7866caa73b12f3b8d91075695f2
tree2dd8d0e8b6ffc87360180c878a87b3632625b3f0
parent88eb0125362f2ab272cbaf84252cf101ddc2dec9
ring-buffer: move code around to remove some branches

This is a bit of micro-optimizations. But since the ring buffer is used
in tracing every function call, it is an extreme hot path. Every nanosecond
counts.

This change shows over 5% improvement in the ring-buffer-benchmark.

[ Impact: more efficient code ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c