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: 4427351 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 501759F333 for ; Thu, 26 Jun 2014 11:46:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8AB2620115 for ; Thu, 26 Jun 2014 11:46:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F3B4D2038C for ; Thu, 26 Jun 2014 11:46:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757412AbaFZLqM (ORCPT ); Thu, 26 Jun 2014 07:46:12 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:12566 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757039AbaFZLqL (ORCPT ); Thu, 26 Jun 2014 07:46:11 -0400 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>; 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 Cc: Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Sachin Kamat , Tomasz Figa , Krzysztof Kozlowski 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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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); } } }