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)
commit82cd6def9806dcb6a325fb6abbc1d61388a15f6a
tree569ce440f8a0619adb8c3791d6b68eecdb2fd29c
parent8b92538d84e50062560ba33adbaed7887b6e4a42
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