From patchwork Thu Jun 26 11:46:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 4427381 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6C3D89F333 for ; Thu, 26 Jun 2014 11:49:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A2D5F20381 for ; Thu, 26 Jun 2014 11:48:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C0C8120379 for ; Thu, 26 Jun 2014 11:48:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X088U-0000RH-3f; Thu, 26 Jun 2014 11:46:38 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X088R-0000HR-34 for linux-arm-kernel@lists.infradead.org; Thu, 26 Jun 2014 11:46:35 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N7R002JBY0T5I80@mailout1.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 26 Jun 2014 12:46:05 +0100 (BST) X-AuditID: cbfec7f4-b7fac6d000006cfe-3e-53ac080043c3 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id AC.8D.27902.0080CA35; Thu, 26 Jun 2014 12:46:08 +0100 (BST) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N7R00LT8Y0SU030@eusync4.samsung.com>; Thu, 26 Jun 2014 12:46:08 +0100 (BST) From: Krzysztof Kozlowski To: Russell King , Kukjin Kim , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND] ARM: EXYNOS: Do not calculate boot address twice Date: Thu, 26 Jun 2014 13:46:03 +0200 Message-id: <1403783163-28638-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrIJMWRmVeSWpSXmKPExsVy+t/xa7oMHGuCDT6+tLbYOGM9q8XrF4YW vQuuslmcbXrDbrHp8TVWi8u75rBZzDi/j8ni9mVei7VH7rJbnPzTy2ixfsZrFgduj5bmHjaP O9f2sHlsXlLv0bdlFaPH501yAaxRXDYpqTmZZalF+nYJXBkfZ85iLnjOUdGy5R1TA+NS9i5G Tg4JAROJRxs2MkHYYhIX7q1n62Lk4hASWMoo0bVvOhOE08ck8ehlCwtIFZuAscTm5UvAqkQE djBKLL93mR3EYRaYyCSxpe0HWJWwgIfEz6vvmUFsFgFViat9h8F28Aq4Sxz7/o4ZYp+cxMlj k1knMHIvYGRYxSiaWppcUJyUnmuoV5yYW1yal66XnJ+7iRESTF92MC4+ZnWIUYCDUYmHV2Lu 6mAh1sSy4srcQ4wSHMxKIrwiv4FCvCmJlVWpRfnxRaU5qcWHGJk4OKUaGMO95iUFx98qFrJ1 f+L5kGXH4fczZsnYrdsizdTzMOD/2yX/Ds9P0Gqx/HzdebPiq4v98x7dNOteuPop5xTB7WI2 cmu224UJpZzPOexy8cOpZu4X3yya/Fr/xUQxMzyOtv2tLWsVHcvim+6jNe+92q+Jrz6Wqekq qbO9n7WjuC93xXrJp9xVu5VYijMSDbWYi4oTAf1w82QEAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140626_044635_292161_43B0D2ED X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Sachin Kamat , Tomasz Figa , Kyungmin Park , Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit b3205dea8fbf ("ARM: EXYNOS: Map SYSRAM through generic DT bindings") introduced local variable boot_reg where boot address from cpu_boot_reg() call is stored. Re-use it instead calling cpu_boot_reg() again. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Sachin Kamat --- arch/arm/mach-exynos/platsmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index 1c8d31e39520..55ed2e6729c5 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -155,7 +155,7 @@ static int exynos_boot_secondary(unsigned int cpu, struct task_struct *idle) ret = PTR_ERR(boot_reg); goto fail; } - __raw_writel(boot_addr, cpu_boot_reg(phys_cpu)); + __raw_writel(boot_addr, boot_reg); } call_firmware_op(cpu_boot, phys_cpu); @@ -242,7 +242,7 @@ static void __init exynos_smp_prepare_cpus(unsigned int max_cpus) if (IS_ERR(boot_reg)) break; - __raw_writel(boot_addr, cpu_boot_reg(phys_cpu)); + __raw_writel(boot_addr, boot_reg); } } }