From patchwork Sat Apr 30 02:08:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 742982 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 p3U28ljs027707 for ; Sat, 30 Apr 2011 02:09:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759596Ab1D3CJE (ORCPT ); Fri, 29 Apr 2011 22:09:04 -0400 Received: from mail-gw0-f46.google.com ([74.125.83.46]:55615 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759628Ab1D3CJD (ORCPT ); Fri, 29 Apr 2011 22:09:03 -0400 Received: by mail-gw0-f46.google.com with SMTP id a18so1492059gwa.19 for ; Fri, 29 Apr 2011 19:09:03 -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=aPLsQvuIi3GxzsqlVXiVdnzJlfjWxNrOHDrMaJUm7I0=; b=rDnc8nHEFlcgMzBVlew/s6H0INNr28X7bqXNqETRlKcFZ4ztK9DyfmHb5x/1wnzdS+ t/qi/v1GFqZrrZXnHywbubdK62N7NkS0/W7ofdI8yX7qEmOkyt8RJLTZBI7299en4+KO vGNjJkzW41AdqHc62/mIJctPhh9TnlmIRB9r4= 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=FXgnE5rOPR0Nqs2gFhesAr2VfvXAF1cqK9KwDgdC2tmvYIS5BnvlNnyWLWPPN+beZa 9fc7vyPA6xNVuzaH7zwhbfaXXX1qMq2498O6QucXml6pwsfxdrpBkWLpDwcFOShp1QN1 NFvyycCMUg38tDYMWv7j+RhJf4q7ew3lDq3Eg= Received: by 10.150.56.21 with SMTP id e21mr4578218yba.357.1304129342867; Fri, 29 Apr 2011 19:09:02 -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.01 (version=SSLv3 cipher=OTHER); Fri, 29 Apr 2011 19:09:02 -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 05/10] ARM: omap: use common scu_init_cpus Date: Fri, 29 Apr 2011 21:08:12 -0500 Message-Id: <1304129297-6614-6-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:06 +0000 (UTC) From: Rob Herring Convert omap to use common scu_init_cpus function. Signed-off-by: Rob Herring --- arch/arm/mach-omap2/omap-smp.c | 16 +--------------- 1 files changed, 1 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-omap2/omap-smp.c b/arch/arm/mach-omap2/omap-smp.c index b66cfe8..831c8a0 100644 --- a/arch/arm/mach-omap2/omap-smp.c +++ b/arch/arm/mach-omap2/omap-smp.c @@ -99,25 +99,11 @@ static void __init wakeup_secondary(void) */ void __init smp_init_cpus(void) { - unsigned int i, ncores; - /* Never released */ scu_base = ioremap(OMAP44XX_SCU_BASE, SZ_256); BUG_ON(!scu_base); - ncores = scu_get_core_count(scu_base); - - /* sanity check */ - if (ncores > NR_CPUS) { - printk(KERN_WARNING - "OMAP4: no. of cores (%d) greater than configured " - "maximum of %d - clipping\n", - ncores, NR_CPUS); - ncores = NR_CPUS; - } - - for (i = 0; i < ncores; i++) - set_cpu_possible(i, true); + scu_init_cpus(scu_base); } void __init platform_smp_prepare_cpus(unsigned int max_cpus)