diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-10-23 15:33:06 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-23 16:00:23 +0200 |
commit | 4d296c24326783bff1282ac72f310d8bac8df413 (patch) | |
tree | 75751fdafc0fa5818a926478e78dd9e54f1cf872 /arch/arm/kernel/ftrace.c | |
parent | ftrace: remove daemon (diff) | |
download | linux-4d296c24326783bff1282ac72f310d8bac8df413.tar.xz linux-4d296c24326783bff1282ac72f310d8bac8df413.zip |
ftrace: remove mcount set
The arch dependent function ftrace_mcount_set was only used by the daemon
start up code. This patch removes it.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/arm/kernel/ftrace.c')
-rw-r--r-- | arch/arm/kernel/ftrace.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/arm/kernel/ftrace.c b/arch/arm/kernel/ftrace.c index 76d50e6091bc..6c90479e8974 100644 --- a/arch/arm/kernel/ftrace.c +++ b/arch/arm/kernel/ftrace.c @@ -95,19 +95,6 @@ int ftrace_update_ftrace_func(ftrace_func_t func) return ret; } -int ftrace_mcount_set(unsigned long *data) -{ - unsigned long pc, old; - unsigned long *addr = data; - unsigned char *new; - - pc = (unsigned long)&mcount_call; - memcpy(&old, &mcount_call, MCOUNT_INSN_SIZE); - new = ftrace_call_replace(pc, *addr); - *addr = ftrace_modify_code(pc, (unsigned char *)&old, new); - return 0; -} - /* run from kstop_machine */ int __init ftrace_dyn_arch_init(void *data) { |