diff options
author | Abhishek Sagar <sagar.abhishek@gmail.com> | 2008-06-01 12:17:42 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-10 05:57:49 -0400 |
commit | 1d74f2a0f64b4091e5e91b55ac1b17dff93f4b59 (patch) | |
tree | 8777ee5d38cf27939687adf2dc3d2a9a5f60b33d /arch/arm/kernel | |
parent | 0eb967012ea15e6e8cfab483d9fa37bc602d400c (diff) |
ftrace: remove ftrace_ip_converted()
Remove the unneeded function ftrace_ip_converted().
Signed-off-by: Abhishek Sagar <sagar.abhishek@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/ftrace.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/kernel/ftrace.c b/arch/arm/kernel/ftrace.c index f4cb4cc3fa0c..22f3d6e309f9 100644 --- a/arch/arm/kernel/ftrace.c +++ b/arch/arm/kernel/ftrace.c | |||
@@ -22,16 +22,6 @@ | |||
22 | static unsigned long bl_insn; | 22 | static unsigned long bl_insn; |
23 | static const unsigned long NOP = 0xe1a00000; /* mov r0, r0 */ | 23 | static const unsigned long NOP = 0xe1a00000; /* mov r0, r0 */ |
24 | 24 | ||
25 | /* return true if mcount call site is already patched/no-op'ed */ | ||
26 | int ftrace_ip_converted(unsigned long pc) | ||
27 | { | ||
28 | unsigned long save; | ||
29 | |||
30 | pc -= INSN_SIZE; | ||
31 | save = *(unsigned long *)pc; | ||
32 | return save == NOP; | ||
33 | } | ||
34 | |||
35 | unsigned char *ftrace_nop_replace(void) | 25 | unsigned char *ftrace_nop_replace(void) |
36 | { | 26 | { |
37 | return (char *)&NOP; | 27 | return (char *)&NOP; |