From patchwork Wed Aug 7 22:13:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2840617 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 74E9ABF535 for ; Wed, 7 Aug 2013 22:21:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 908DC204B0 for ; Wed, 7 Aug 2013 22:21:30 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A710D203A3 for ; Wed, 7 Aug 2013 22:21:29 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7C6g-0007DO-JE; Wed, 07 Aug 2013 22:21:26 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7C6e-0007ln-DE; Wed, 07 Aug 2013 22:21:24 +0000 Received: from mail-pb0-x230.google.com ([2607:f8b0:400e:c01::230]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7C6b-0007lN-Mv for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2013 22:21:22 +0000 Received: by mail-pb0-f48.google.com with SMTP id ma3so2412693pbc.35 for ; Wed, 07 Aug 2013 15:20:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=cnFS/fRGpQlb6km1Po3wcoO0Tw3+xms0KRvUu8/TGFA=; b=oSLgYSMWVpt7A4dVVWh5HfeVbV3Rmg38qmzBsNzc2vouk9oXQLZeC7U8ARQY6wk10p t1nfah+ACS6DZdbOQJ8rs+kWYBZ3bcmR2EuPNFOWbggItD696XDXyddYJeOhk6sqMygO Ke0J/uqVFyu5rdfYjJ1gu1k04GTFWaJfKKV7Lk2GLHLKzcgu/ItuJMnSwcmbPy5D9iJW w58G5Lh8mknlQrCfOTgqSFtlRMfXJ7WT58g8IEz5iPxdhgPksI+FARwKpZFKSIxY8aPS 6zDvp7sCgufdTuwDQvEl8KClpAQ/rpz2rlpVuu7sDBmE5iKLtpN6w3uibNLMDmRIPPPE ne0A== X-Received: by 10.66.227.194 with SMTP id sc2mr2914025pac.41.1375913616875; Wed, 07 Aug 2013 15:13:36 -0700 (PDT) Received: from [127.0.0.1] (ac230065.ppp.asahi-net.or.jp. [183.77.230.65]) by mx.google.com with ESMTPSA id bg3sm10258606pbb.44.2013.08.07.15.13.34 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 Aug 2013 15:13:35 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Thu, 08 Aug 2013 07:13:49 +0900 Message-Id: <20130807221349.22251.44228.sendpatchset@w520> In-Reply-To: <20130807221321.22251.22774.sendpatchset@w520> References: <20130807221321.22251.22774.sendpatchset@w520> Subject: [PATCH 03/05] ARM: shmobile: Remove unused shmobile_smp_init_cpus() X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130807_182121_842825_2B53CBF1 X-CRM114-Status: UNSURE ( 8.39 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: olof@lixom.net, horms@verge.net.au, Magnus Damm , arnd@arndb.de, linux-arm-kernel@lists.infradead.org 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=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 From: Magnus Damm Remove shmobile_smp_init_cpus() since all SMP platforms in mach-shmobile now rely on DT for CPU core description instead of for instance determining number of cores from the SCU. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/include/mach/common.h | 1 - arch/arm/mach-shmobile/platsmp.c | 15 --------------- 2 files changed, 16 deletions(-) --- 0003/arch/arm/mach-shmobile/include/mach/common.h +++ work/arch/arm/mach-shmobile/include/mach/common.h 2013-08-07 13:42:20.000000000 +0900 @@ -40,7 +40,6 @@ static inline int shmobile_cpuidle_init( #endif extern void __iomem *shmobile_scu_base; -extern void shmobile_smp_init_cpus(unsigned int ncores); static inline void __init shmobile_init_late(void) { --- 0003/arch/arm/mach-shmobile/platsmp.c +++ work/arch/arm/mach-shmobile/platsmp.c 2013-08-07 14:29:34.000000000 +0900 @@ -11,25 +11,10 @@ * published by the Free Software Foundation. */ #include -#include #include #include #include -void __init shmobile_smp_init_cpus(unsigned int ncores) -{ - unsigned int i; - - if (ncores > nr_cpu_ids) { - pr_warn("SMP: %u cores greater than maximum (%u), clipping\n", - ncores, nr_cpu_ids); - ncores = nr_cpu_ids; - } - - for (i = 0; i < ncores; i++) - set_cpu_possible(i, true); -} - extern unsigned long shmobile_smp_fn[]; extern unsigned long shmobile_smp_arg[]; extern unsigned long shmobile_smp_mpidr[];