]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Use jump_labels to optimize the scheduler hooks
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 14 Oct 2010 15:57:23 +0000 (17:57 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 18 Oct 2010 17:58:58 +0000 (19:58 +0200)
commiteaa9bc41970592ec89262d3239635dfa23d835d3
tree569ce440f8a0619adb8c3791d6b68eecdb2fd29c
parentd4e61404ab5ad9c4c67c8b87fbcb01dc161d1198
perf: Use jump_labels to optimize the scheduler hooks

Trades a call + conditional + ret for an unconditional jmp.

Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20101014203625.501657727@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_event.h
kernel/perf_event.c