From patchwork Tue Feb 12 15:45:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2129091 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id C9027DF23E for ; Tue, 12 Feb 2013 15:42:45 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U5Hxq-0003aU-Su; Tue, 12 Feb 2013 15:40:10 +0000 Received: from mail-pa0-f45.google.com ([209.85.220.45]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U5HxX-0003RI-Aa for linux-arm-kernel@lists.infradead.org; Tue, 12 Feb 2013 15:39:52 +0000 Received: by mail-pa0-f45.google.com with SMTP id kl14so145124pab.4 for ; Tue, 12 Feb 2013 07:39:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:date:message-id:in-reply-to:references :subject; bh=tybWnhtQ6MN3w5tVeYkOeeYk2PAxi6mVG8HF+hP8N4c=; b=YZSEMd9WBeYMQi15lBDmsr9Ev/US1Z999G3n7DCeh0F1Yyp8lRyFSDY8Yk3nLp+K6x 0YDtlvPuzDS/tajO1eprEwX5fXlKggJe6ovZxpIxg7u12UJoQv3QA0qWkvDiWilGjVCD WtCBSF6qLoobX39BylcVKbJzvBwt7vjOtBoh8DkaekYkeYesSy4HQYttqQhUQK0zhXL9 HhJJfIVHq7P2EiIboqnLvIv2LpFHxRxT0o5CDbLf+VZ8jKjL9k3XXkgl7biK85yzvlFI 5btdk4FlB7jnLpkZNOAm6wx6JD6dOdDJS/kjr5zIL4WFTLH5hxqyewVfa+ug6AZVXPC1 HRJg== X-Received: by 10.66.89.226 with SMTP id br2mr53354252pab.57.1360683589962; Tue, 12 Feb 2013 07:39:49 -0800 (PST) Received: from [127.0.0.1] (FL1-122-133-79-190.tky.mesh.ad.jp. [122.133.79.190]) by mx.google.com with ESMTPS id l5sm75891764pax.10.2013.02.12.07.39.47 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Feb 2013 07:39:48 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Wed, 13 Feb 2013 00:45:25 +0900 Message-Id: <20130212154525.13067.38412.sendpatchset@w520> In-Reply-To: <20130212154438.13067.77359.sendpatchset@w520> References: <20130212154438.13067.77359.sendpatchset@w520> Subject: [PATCH 05/06] ARM: shmobile: Remove r8a7779_get_core_count() X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130212_103951_483197_38BDFA0F X-CRM114-Status: GOOD ( 10.56 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.45 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (magnus.damm[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: horms@verge.net.au, Magnus Damm , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Magnus Damm Reduce the number of lines of code in smp-r8a7779.c by getting rid of the r8a7779_get_core_count() function. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/smp-r8a7779.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) --- 0001/arch/arm/mach-shmobile/smp-r8a7779.c +++ work/arch/arm/mach-shmobile/smp-r8a7779.c 2013-02-12 23:51:15.000000000 +0900 @@ -87,13 +87,6 @@ static void modify_scu_cpu_psr(unsigned __raw_writel(tmp, scu_base + 8); } -static unsigned int __init r8a7779_get_core_count(void) -{ - void __iomem *scu_base = scu_base_addr(); - - return scu_get_core_count(scu_base); -} - static int r8a7779_platform_cpu_kill(unsigned int cpu) { struct r8a7779_pm_ch *ch = NULL; @@ -178,7 +171,7 @@ static void __init r8a7779_smp_prepare_c static void __init r8a7779_smp_init_cpus(void) { - unsigned int ncores = r8a7779_get_core_count(); + unsigned int ncores = scu_get_core_count(scu_base_addr()); shmobile_smp_init_cpus(ncores); }