diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-05-22 14:31:07 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-26 16:51:57 -0400 |
commit | ccbfac2923c9febaeaf07a50054027a92b502718 (patch) | |
tree | 0ed9e86b823ef0b55023a5428b3799ecfe79ea78 /arch/powerpc/kernel/entry_32.S | |
parent | 41bc8144d02028133bcd1d545023c6f49e8b2411 (diff) |
ftrace: powerpc clean ups
This patch cleans up the ftrace code in PowerPC based on the comments from
Michael Ellerman.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Cc: Michael Ellerman <michael@ellerman.id.au>
Cc: proski@gnu.org
Cc: a.p.zijlstra@chello.nl
Cc: Pekka Paalanen <pq@iki.fi>
Cc: Steven Rostedt <srostedt@redhat.com>
Cc: linuxppc-dev@ozlabs.org
Cc: Soeren Sandmann Pedersen <sandmann@redhat.com>
Cc: paulus@samba.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/powerpc/kernel/entry_32.S')
-rw-r--r-- | arch/powerpc/kernel/entry_32.S | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S index 0e6221889ca9..3b1dd29d9f91 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S | |||
@@ -1129,18 +1129,11 @@ _GLOBAL(_mcount) | |||
1129 | stw r5, 8(r1) | 1129 | stw r5, 8(r1) |
1130 | 1130 | ||
1131 | LOAD_REG_ADDR(r5, ftrace_trace_function) | 1131 | LOAD_REG_ADDR(r5, ftrace_trace_function) |
1132 | #if 0 | ||
1133 | mtctr r3 | ||
1134 | mr r1, r5 | ||
1135 | bctrl | ||
1136 | #endif | ||
1137 | lwz r5,0(r5) | 1132 | lwz r5,0(r5) |
1138 | #if 1 | 1133 | |
1139 | mtctr r5 | 1134 | mtctr r5 |
1140 | bctrl | 1135 | bctrl |
1141 | #else | 1136 | |
1142 | bl ftrace_stub | ||
1143 | #endif | ||
1144 | nop | 1137 | nop |
1145 | 1138 | ||
1146 | lwz r6, 8(r1) | 1139 | lwz r6, 8(r1) |