]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80354fbc62a2f979f4a28f413b4ed2a9c165673e
tree2d9b872ebb5484c9537e355ae7d0cbc1351afd92
parent3710505e4568367c05d1086f524d0c45ac7eb592
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