From patchwork Sat Apr 30 02:08:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 743012 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 p3U28ljt027707 for ; Sat, 30 Apr 2011 02:09:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759652Ab1D3CJH (ORCPT ); Fri, 29 Apr 2011 22:09:07 -0400 Received: from mail-yi0-f46.google.com ([209.85.218.46]:63443 "EHLO mail-yi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759609Ab1D3CJG (ORCPT ); Fri, 29 Apr 2011 22:09:06 -0400 Received: by yia27 with SMTP id 27so1491468yia.19 for ; Fri, 29 Apr 2011 19:09:05 -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=+tX2f+dBgot81xZw7elzXKpCFgD39GAtyLDoeZfdEFE=; b=wxbbtBB186X9105sVOepPkcQ+GuMXKKPcHDfC8W4AgyGWgH/q5CiboKC9J+uwrBBhW +63ZIxrkRKE5392vQKTNxISz+vPa1JdGwUfkm8TOVOtzYCm1ysDpGHjPV8zS5kQHPC7p DKHKsz4caMnejevrq8Ji1J3UxRRGcWlO9fCGo= 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=iiBGQoZnF7Vg5tRu3TZgIJ5KlFq8YMJ8ocwQT4TRUl2jVM84OLFXkpQlZ4YepBltj5 B364Ae2HnlNeMPVxu8hvbxlei8KTdGD0cF0gCCIDxe3bSANbQrJ8zHOZIEexxgHBfDcY lN4YcKW7u5SbDNWzRD/GAIRn8O+TZ7jd/6d+I= Received: by 10.91.161.13 with SMTP id n13mr4760572ago.167.1304129345171; Fri, 29 Apr 2011 19:09:05 -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.03 (version=SSLv3 cipher=OTHER); Fri, 29 Apr 2011 19:09:04 -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 06/10] ARM: realview: use common scu_init_cpus Date: Fri, 29 Apr 2011 21:08:13 -0500 Message-Id: <1304129297-6614-7-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:07 +0000 (UTC) From: Rob Herring Convert realview to use common scu_init_cpus function. Signed-off-by: Rob Herring --- arch/arm/mach-realview/platsmp.c | 17 +---------------- 1 files changed, 1 insertions(+), 16 deletions(-) diff --git a/arch/arm/mach-realview/platsmp.c b/arch/arm/mach-realview/platsmp.c index f443ef3..655a93b 100644 --- a/arch/arm/mach-realview/platsmp.c +++ b/arch/arm/mach-realview/platsmp.c @@ -43,22 +43,7 @@ static void __iomem *scu_base_addr(void) */ void __init smp_init_cpus(void) { - void __iomem *scu_base = scu_base_addr(); - unsigned int i, ncores; - - ncores = scu_base ? scu_get_core_count(scu_base) : 1; - - /* sanity check */ - if (ncores > NR_CPUS) { - printk(KERN_WARNING - "Realview: 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_addr()); } void __init platform_smp_prepare_cpus(unsigned int max_cpus)