aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/ftrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kernel/ftrace.c')
-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;