From patchwork Sat Apr 30 02:08:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 742962 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3U28lju027707 for ; Sat, 30 Apr 2011 02:09:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759666Ab1D3CJJ (ORCPT ); Fri, 29 Apr 2011 22:09:09 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:41809 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759593Ab1D3CJI (ORCPT ); Fri, 29 Apr 2011 22:09:08 -0400 Received: by yxs7 with SMTP id 7so1326536yxs.19 for ; Fri, 29 Apr 2011 19:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=twzidq3wXKCBgygdDu5i2/IqQMlbhPe9drW5xpG6ADM=; b=mv6XUXOsLQFipYdt3MJNkHRe/TQO8FSNEkRmLIIEvbKMD/EtCIyIrewjisD8ZCsDlH whtWPdncRqoYV8AClnHw4+KnxHxnqM872kRmo5pnTxdvpFIzZ4E77smDqDWFUGnLsUmi AMSfg1+x1xY3VJSftb8h2FGMtx0eXD1iXUnaA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=LM3OToZd8VdyeJ145PkiF/gAjCfa+M7q2ACdHioAlMMMVlMCg6iAFJnSaaVz6OMrJ9 tLSotmvAfp6D/oheOeTdDzlUOK6Za9p8trsRCFBlLXXARe/5wDMupc/5IV9G8Al3OFMH P7oaqT77rI4dA1DFIwNUwq5Qs8lvmp4hgCgZM= Received: by 10.151.63.12 with SMTP id q12mr4720854ybk.275.1304129347618; Fri, 29 Apr 2011 19:09:07 -0700 (PDT) Received: from rob-laptop.grandecom.net (65-36-74-215.dyn.grandenetworks.net [65.36.74.215]) by mx.google.com with ESMTPS id w6sm3345086anf.32.2011.04.29.19.09.06 (version=SSLv3 cipher=OTHER); Fri, 29 Apr 2011 19:09:06 -0700 (PDT) From: Rob Herring To: linux-arm-msm@vger.kernel.org, linux-sh@vger.kernel.org, Srinidhi Kasagar , Linus Walleij , Russell King , David Brown , Daniel Walker , Paul Mundt , linux-arm-kernel@lists.infradead.org Cc: Rob Herring Subject: [PATCH 07/10] ARM: vexpress: use common scu_init_cpus Date: Fri, 29 Apr 2011 21:08:14 -0500 Message-Id: <1304129297-6614-8-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1304129297-6614-1-git-send-email-robherring2@gmail.com> References: <1304129297-6614-1-git-send-email-robherring2@gmail.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 30 Apr 2011 02:09:09 +0000 (UTC) From: Rob Herring Convert Versatile Express to use common scu_init_cpus function. Signed-off-by: Rob Herring --- arch/arm/mach-vexpress/ct-ca9x4.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-vexpress/ct-ca9x4.c b/arch/arm/mach-vexpress/ct-ca9x4.c index a96772d..4d1476f 100644 --- a/arch/arm/mach-vexpress/ct-ca9x4.c +++ b/arch/arm/mach-vexpress/ct-ca9x4.c @@ -206,10 +206,7 @@ static void __init ct_ca9x4_init(void) #ifdef CONFIG_SMP static void ct_ca9x4_init_cpu_map(void) { - int i, ncores = scu_get_core_count(MMIO_P2V(A9_MPCORE_SCU)); - - for (i = 0; i < ncores; ++i) - set_cpu_possible(i, true); + scu_init_cpus(MMIO_P2V(A9_MPCORE_SCU)); } static void ct_ca9x4_smp_enable(unsigned int max_cpus)