jump label: Make dynamic no-op selection available outside of ftrace
authorJason Baron <jbaron@redhat.com>
Fri, 17 Sep 2010 15:08:51 +0000 (11:08 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 20 Sep 2010 22:19:39 +0000 (18:19 -0400)
commitf49aa448561fe9215f43405cac6f31eb86317792
treec048d03e49cd20a0183ac173bd30893f8adcf91e
parente9d2b064149ff7ef4acbc65a1b9374ac8b218d3e
jump label: Make dynamic no-op selection available outside of ftrace

Move Steve's code for finding the best 5-byte no-op from ftrace.c to
alternative.c. The idea is that other consumers (in this case jump label)
want to make use of that code.

Signed-off-by: Jason Baron <jbaron@redhat.com>
LKML-Reference: <96259ae74172dcac99c0020c249743c523a92e18.1284733808.git.jbaron@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/include/asm/alternative.h
arch/x86/kernel/alternative.c
arch/x86/kernel/ftrace.c
arch/x86/kernel/setup.c