Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1045195AbdDWLxh (ORCPT ); Sun, 23 Apr 2017 07:53:37 -0400 Received: from ozlabs.org ([103.22.144.67]:44261 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1044869AbdDWLxU (ORCPT ); Sun, 23 Apr 2017 07:53:20 -0400 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 700e64377c2c8e2406e9c4c1632e2eabdb3a95a1 In-Reply-To: <233563a070655a1015210fdb22322b0316615742.1492606062.git.naveen.n.rao@linux.vnet.ibm.com> To: "Naveen N. Rao" From: Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Masami Hiramatsu , Ingo Molnar Subject: Re: [v4,1/6] powerpc: ftrace: minor cleanup Message-Id: <3w9nt56Z1Nz9s2Q@ozlabs.org> Date: Sun, 23 Apr 2017 21:53:17 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 604 Lines: 16 On Wed, 2017-04-19 at 12:52:23 UTC, "Naveen N. Rao" wrote: > Move the stack setup and teardown code to the 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 Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/700e64377c2c8e2406e9c4c1632e2e cheers