mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
powerpc/ftrace: Regroup PPC64 specific operations in ftrace_mprofile.S
CONFIG_MPROFILE_KERNEL is only for PPC64 and ftrace_mprofile.o is build on PPC64 only when CONFIG_MPROFILE_KERNEL is defined. Move saving of r0 inside #ifdef PPC64 Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/619dfb672bf4f1b777a4b3f8b4f14e637fea2716.1645099283.git.christophe.leroy@csgroup.eu
This commit is contained in:
parent
228216716c
commit
a5f04d1f27
1 changed files with 2 additions and 5 deletions
|
@ -33,11 +33,6 @@
|
||||||
* and then arrange for the ftrace function to be called.
|
* and then arrange for the ftrace function to be called.
|
||||||
*/
|
*/
|
||||||
.macro ftrace_regs_entry allregs
|
.macro ftrace_regs_entry allregs
|
||||||
/* Save the original return address in A's stack frame */
|
|
||||||
#ifdef CONFIG_MPROFILE_KERNEL
|
|
||||||
PPC_STL r0,LRSAVE(r1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Create our stack frame + pt_regs */
|
/* Create our stack frame + pt_regs */
|
||||||
PPC_STLU r1,-SWITCH_FRAME_SIZE(r1)
|
PPC_STLU r1,-SWITCH_FRAME_SIZE(r1)
|
||||||
|
|
||||||
|
@ -46,6 +41,8 @@
|
||||||
SAVE_GPRS(3, 10, r1)
|
SAVE_GPRS(3, 10, r1)
|
||||||
|
|
||||||
#ifdef CONFIG_PPC64
|
#ifdef CONFIG_PPC64
|
||||||
|
/* Save the original return address in A's stack frame */
|
||||||
|
std r0, LRSAVE+SWITCH_FRAME_SIZE(r1)
|
||||||
/* Ok to continue? */
|
/* Ok to continue? */
|
||||||
lbz r3, PACA_FTRACE_ENABLED(r13)
|
lbz r3, PACA_FTRACE_ENABLED(r13)
|
||||||
cmpdi r3, 0
|
cmpdi r3, 0
|
||||||
|
|
Loading…
Reference in a new issue