aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorAbhishek Sagar <sagar.abhishek@gmail.com>2008-06-01 12:17:42 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-10 05:57:49 -0400
commit1d74f2a0f64b4091e5e91b55ac1b17dff93f4b59 (patch)
tree8777ee5d38cf27939687adf2dc3d2a9a5f60b33d /arch/arm/kernel
parent0eb967012ea15e6e8cfab483d9fa37bc602d400c (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.c10
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 @@
22static unsigned long bl_insn; 22static unsigned long bl_insn;
23static const unsigned long NOP = 0xe1a00000; /* mov r0, r0 */ 23static const unsigned long NOP = 0xe1a00000; /* mov r0, r0 */
24 24
25/* return true if mcount call site is already patched/no-op'ed */
26int 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
35unsigned char *ftrace_nop_replace(void) 25unsigned char *ftrace_nop_replace(void)
36{ 26{
37 return (char *)&NOP; 27 return (char *)&NOP;