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>
This commit is contained in:
committed by
Ingo Molnar
parent
0eb967012e
commit
1d74f2a0f6
@ -22,16 +22,6 @@
|
||||
static unsigned long bl_insn;
|
||||
static const unsigned long NOP = 0xe1a00000; /* mov r0, r0 */
|
||||
|
||||
/* return true if mcount call site is already patched/no-op'ed */
|
||||
int ftrace_ip_converted(unsigned long pc)
|
||||
{
|
||||
unsigned long save;
|
||||
|
||||
pc -= INSN_SIZE;
|
||||
save = *(unsigned long *)pc;
|
||||
return save == NOP;
|
||||
}
|
||||
|
||||
unsigned char *ftrace_nop_replace(void)
|
||||
{
|
||||
return (char *)&NOP;
|
||||
|
Reference in New Issue
Block a user