From patchwork Thu May 15 08:50:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 4179981 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2E825C0ACC for ; Thu, 15 May 2014 08:53:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 66F9120254 for ; Thu, 15 May 2014 08:53:54 +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 2373020380 for ; Thu, 15 May 2014 08:53:53 +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 1WkrO4-0005p8-42; Thu, 15 May 2014 08:51:36 +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 1WkrO0-000576-8L for linux-arm-kernel@lists.infradead.org; Thu, 15 May 2014 08:51:33 +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 <0N5L00M5AXWTBE30@mailout1.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 15 May 2014 09:50:54 +0100 (BST) X-AuditID: cbfec7f4-b7fb36d000006ff7-2b-53747fef5fd1 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 16.63.28663.FEF74735; Thu, 15 May 2014 09:50:55 +0100 (BST) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N5L008QXXWT6K00@eusync3.samsung.com>; Thu, 15 May 2014 09:50:55 +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 on kgene/for-next] ARM: EXYNOS: Do not calculate boot address twice Date: Thu, 15 May 2014 10:50:59 +0200 Message-id: <1400143859-21457-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHJMWRmVeSWpSXmKPExsVy+t/xq7rv60uCDb7PNrZ4/cLQonfBVTaL TY+vsVpc3jWHzWLG+X1MFrcv81qc/NPLaLF+xmsWBw6PluYeNo871/aweWxeUu/Rt2UVo8fn TXIBrFFcNimpOZllqUX6dglcGf2TTzAXPOeoODNnBWsD41L2LkYODgkBE4np92K6GDmBTDGJ C/fWs3UxcnEICSxllJi17CkzSEJIoI9J4sBtBxCbTcBYYvPyJWBFIgI7GCWW37vMDpJgFqiV OLvzFCOILSwQKnH5CkQzi4CqxNOmOYwgy3gF3CUerpKFWCYncfLYZNYJjNwLGBlWMYqmliYX FCel5xrqFSfmFpfmpesl5+duYoSEyZcdjIuPWR1iFOBgVOLh7dhfHCzEmlhWXJl7iFGCg1lJ hNexuiRYiDclsbIqtSg/vqg0J7X4ECMTB6dUA6OuR96dVafXzNsXI5u2L77pKVN686envt+s 5K/VvXr87LSZOu/T0sVOZd/i1j19ajG1jkndZmFdS45Ez/HZPz5YG5h8zXhuYmpreNZmgcdq 145JXg9YHSUl7y4+bVXZUDA9yXmObGpw6OnnUy22HQljXlJV+Zpz8dQjEjEnwgt6zz1Y8Opq zk0lluKMREMt5qLiRADCJaTi8QEAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140515_015132_477245_D6783336 X-CRM114-Status: UNSURE ( 9.84 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.6 (-----) Cc: Sachin Kamat , Tomasz Figa , Krzysztof Kozlowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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=-2.5 required=5.0 tests=BAYES_00,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 --- 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 51cdabee10e5..c64bfc68ff9a 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -180,7 +180,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); @@ -267,7 +267,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); } } }