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/powerpc/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/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/ftrace.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/powerpc/kernel/ftrace.c b/arch/powerpc/kernel/ftrace.c index 69ed41223468..e12c593ab9ca 100644 --- a/arch/powerpc/kernel/ftrace.c +++ b/arch/powerpc/kernel/ftrace.c | |||
@@ -27,16 +27,6 @@ static unsigned int ftrace_nop = 0x60000000; | |||
27 | # define GET_ADDR(addr) *(unsigned long *)addr | 27 | # define GET_ADDR(addr) *(unsigned long *)addr |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | notrace int ftrace_ip_converted(unsigned long ip) | ||
31 | { | ||
32 | unsigned int save; | ||
33 | |||
34 | ip -= CALL_BACK; | ||
35 | save = *(unsigned int *)ip; | ||
36 | |||
37 | return save == ftrace_nop; | ||
38 | } | ||
39 | |||
40 | static unsigned int notrace ftrace_calc_offset(long ip, long addr) | 30 | static unsigned int notrace ftrace_calc_offset(long ip, long addr) |
41 | { | 31 | { |
42 | return (int)((addr + CALL_BACK) - ip); | 32 | return (int)((addr + CALL_BACK) - ip); |