From patchwork Tue Feb 12 15:45:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2129071 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 75587DF23E for ; Tue, 12 Feb 2013 15:42:28 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U5HxY-0003Rf-S9; Tue, 12 Feb 2013 15:39:52 +0000 Received: from mail-pa0-f48.google.com ([209.85.220.48]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U5HxP-0003Oa-27 for linux-arm-kernel@lists.infradead.org; Tue, 12 Feb 2013 15:39:43 +0000 Received: by mail-pa0-f48.google.com with SMTP id hz10so140807pad.35 for ; Tue, 12 Feb 2013 07:39:40 -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=3Fra9Qt3RLy/Sj/hE4dVqLEQtJglJ3IBreaK8CLtUWY=; b=aeEEedlJ56Z25VeaNS9hXfzQ2BY4WlXgxvn5pLeGHnoH4du9QJgrD/6hTOhMJ+hRw7 NsKG2K8tYZosGVqNtt+U9e94cBbE2hSpusTxcQXID2p5cNhmi81iiII7hfghqONrzQ64 EFC7UN2hHDoH1JHs2wvU948ildJsOkxexziBn7jCM3Vu3QWvzL0ICesCPM5g0Ac71rWK 1TCAXpBDdzUd+rzidrDb7e/A7QuaEFwTFkGMRdMOpzB5x6pKN08lYtX6CDTeMeYXF7b6 +4HoT0yLx/bqQ7f3YTu0gzlg3yaRUMxnOe1pPZUiVXDyBRcIM4FnBlBONNkdNRbVfuXQ hDOw== X-Received: by 10.66.82.103 with SMTP id h7mr53579301pay.6.1360683580823; Tue, 12 Feb 2013 07:39:40 -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 g2sm20094836pav.2.2013.02.12.07.39.38 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Feb 2013 07:39:39 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Wed, 13 Feb 2013 00:45:16 +0900 Message-Id: <20130212154516.13067.82532.sendpatchset@w520> In-Reply-To: <20130212154438.13067.77359.sendpatchset@w520> References: <20130212154438.13067.77359.sendpatchset@w520> Subject: [PATCH 04/06] ARM: shmobile: Remove sh73a0_get_core_count() X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130212_103943_200073_C7050139 X-CRM114-Status: GOOD ( 10.38 ) 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.48 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-sh73a0.c by getting rid of the sh73a0_get_core_count() function. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/smp-sh73a0.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) --- 0001/arch/arm/mach-shmobile/smp-sh73a0.c +++ work/arch/arm/mach-shmobile/smp-sh73a0.c 2013-02-12 23:50:18.000000000 +0900 @@ -52,13 +52,6 @@ void __init sh73a0_register_twd(void) } #endif -static unsigned int __init sh73a0_get_core_count(void) -{ - void __iomem *scu_base = scu_base_addr(); - - return scu_get_core_count(scu_base); -} - static void __cpuinit sh73a0_secondary_init(unsigned int cpu) { gic_secondary_init(0); @@ -90,7 +83,7 @@ static void __init sh73a0_smp_prepare_cp static void __init sh73a0_smp_init_cpus(void) { - unsigned int ncores = sh73a0_get_core_count(); + unsigned int ncores = scu_get_core_count(scu_base_addr()); shmobile_smp_init_cpus(ncores); }