]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ftrace: Move stack setup and teardown code into ftrace_graph_caller()
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Wed, 19 Apr 2017 12:52:23 +0000 (18:22 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 23 Apr 2017 10:32:24 +0000 (20:32 +1000)
commitedf1a86bc6f1c386beaeec13eb01a2aad100d4b6
tree81366b9ea46323f532a7d74565899b013fa7d58d
parentfe83779dc0c7053180804fe1cee6a9342134ab35
powerpc/ftrace: Move stack setup and teardown code into ftrace_graph_caller()

Move the stack setup and teardown code into ftrace_graph_caller(). This way, we
don't incur the cost of setting it up unless function graph is enabled for this
function.

Also, remove the extraneous LR restore code after the function graph stub. LR
has previously been restored and neither livepatch_handler() nor
ftrace_graph_caller() return back here.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
[mpe: Drop bad change to non-mprofile-kernel version of ftrace_graph_caller]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/entry_64.S