From patchwork Fri Jun 17 09:32:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 70297 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp185698qgy; Fri, 17 Jun 2016 02:32:20 -0700 (PDT) X-Received: by 10.194.42.69 with SMTP id m5mr1313701wjl.89.1466155940771; Fri, 17 Jun 2016 02:32:20 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id d2si10963054wjl.90.2016.06.17.02.32.20; Fri, 17 Jun 2016 02:32:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 962F4A75D5; Fri, 17 Jun 2016 11:32:19 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bspS6neG_R38; Fri, 17 Jun 2016 11:32:19 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 982F6A7559; Fri, 17 Jun 2016 11:32:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EFA90A7559 for ; Fri, 17 Jun 2016 11:32:13 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H_fkt5Kph4Vt for ; Fri, 17 Jun 2016 11:32:13 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-08.nifty.com (conuserg-08.nifty.com [210.131.2.75]) by theia.denx.de (Postfix) with ESMTPS id 301C84B9B0 for ; Fri, 17 Jun 2016 11:32:08 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id u5H9VWj6000474; Fri, 17 Jun 2016 18:31:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com u5H9VWj6000474 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1466155893; bh=X/dNaLTwtxep9vGbdt8FFl8J+tIIucbSXTZtx6XmVIM=; h=From:To:Cc:Subject:Date:From; b=dGyrKk3riMiV1Gc5WVAVj7H3ENZlLJAUoDxhxvdt4NkgwmMiGO9b62gRg/c0StWWb jamzVeNrhaepqyUL9Uq9JE6KIDh97H7c8O+yDrNJYDZ0Txskgq6Q+uq2Rnz+1w/ZqK zHxrTdxJQBZ0VvepIqJ39FZRCcKxLmm1XNQfdyjqyw0YkU4NXwXdmkP9JelE0iy7ss 6QMKAbfsUD5IdR0zlZtGCqM7wmMhVyh2I8tPE9KMuwamI5L5avC8nc2+4+KcszMV1v yGuH5fPBoFWWOsQwTJUmk0ii8LVK23apdRDVs5jhlan5ijcBtbK/2nQvuweaz6E6xp i7SCA9sRz46dQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 17 Jun 2016 18:32:47 +0900 Message-Id: <1466155967-15330-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Cc: Stephen Warren , Andre Przywara , Thierry Reding , Radha Mohan Chintakuntla Subject: [U-Boot] [PATCH] arm64: optimize smp_kick_all_cpus X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" gic_kick_secondary_cpus can directly return to the caller of smp_kick_all_cpus. We do not have to use x29 register here. Signed-off-by: Masahiro Yamada --- arch/arm/cpu/armv8/start.S | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S index c1a2f45..670e323 100644 --- a/arch/arm/cpu/armv8/start.S +++ b/arch/arm/cpu/armv8/start.S @@ -258,12 +258,10 @@ ENDPROC(lowlevel_init) WEAK(smp_kick_all_cpus) /* Kick secondary cpus up by SGI 0 interrupt */ - mov x29, lr /* Save LR */ #if defined(CONFIG_GICV2) || defined(CONFIG_GICV3) ldr x0, =GICD_BASE - bl gic_kick_secondary_cpus + b gic_kick_secondary_cpus #endif - mov lr, x29 /* Restore LR */ ret ENDPROC(smp_kick_all_cpus)