powerpc32, ftrace: save and restore mcount regs with macro
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 11 Feb 2009 20:01:18 +0000 (15:01 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 22 Feb 2009 23:48:54 +0000 (10:48 +1100)
commitbf528a3a9bd11b6ae39684b18c9c0678f23924fd
tree2d9b872ebb5484c9537e355ae7d0cbc1351afd92
parentbb7253403f7a4670a128e4c080fd8ea1bd4d5029
powerpc32, ftrace: save and restore mcount regs with macro

Impact: clean up

Use a macro to save and restore the registers for PowerPC32,
since that code is duplicated.

This is similar to the work done by Cyrill Gorcunov for the
mcount code in x86_64.

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/ftrace.h
arch/powerpc/kernel/entry_32.S