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: 4179971 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 69CF39F271 for ; Thu, 15 May 2014 08:51:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A666520251 for ; Thu, 15 May 2014 08:51:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C426220127 for ; Thu, 15 May 2014 08:51:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751476AbaEOIvD (ORCPT ); Thu, 15 May 2014 04:51:03 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:39903 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751191AbaEOIu7 (ORCPT ); Thu, 15 May 2014 04:50:59 -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 <0N5L00M5AXWTBE30@mailout1.w1.samsung.com>; 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 Cc: Sachin Kamat , Tomasz Figa , Krzysztof Kozlowski 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== 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=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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); } } }