diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2021-12-20 17:38:16 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-02-07 11:03:10 +0100 |
commit | 7875bc9b07cde868784195e215f4deaa0fa928a2 (patch) | |
tree | 38b10ebe4a7c6a09acedc47c54105359b62fa119 /arch/powerpc/kernel/trace/ftrace_32.S | |
parent | powerpc/ftrace: Add support for livepatch to PPC32 (diff) | |
download | linux-7875bc9b07cde868784195e215f4deaa0fa928a2.tar.xz linux-7875bc9b07cde868784195e215f4deaa0fa928a2.zip |
powerpc/ftrace: Don't save again LR in ftrace_regs_caller() on PPC32
PPC32 mcount() caller already saves LR on stack,
no need to save it again.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/eadcfc770b4f1e35535ffb85e28e858a2c31dec4.1640017960.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/kernel/trace/ftrace_32.S')
-rw-r--r-- | arch/powerpc/kernel/trace/ftrace_32.S | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/trace/ftrace_32.S b/arch/powerpc/kernel/trace/ftrace_32.S index 0a02c0cb12d9..7e2fd729116b 100644 --- a/arch/powerpc/kernel/trace/ftrace_32.S +++ b/arch/powerpc/kernel/trace/ftrace_32.S @@ -53,9 +53,6 @@ _GLOBAL(ftrace_stub) blr _GLOBAL(ftrace_regs_caller) - /* Save the original return address in A's stack frame */ - stw r0,LRSAVE(r1) - /* Create our stack frame + pt_regs */ stwu r1,-INT_FRAME_SIZE(r1) |