From patchwork Sat Apr 30 02:08:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 743022 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 p3U28ljv027707 for ; Sat, 30 Apr 2011 02:09:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759679Ab1D3CJL (ORCPT ); Fri, 29 Apr 2011 22:09:11 -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 S1754379Ab1D3CJK (ORCPT ); Fri, 29 Apr 2011 22:09:10 -0400 Received: by mail-yx0-f174.google.com with SMTP id 7so1326536yxs.19 for ; Fri, 29 Apr 2011 19:09:10 -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=e2kJHhlkNP+Bd5eC9XPhRK7I/DrgwexKQNwQifzV0Dk=; b=Bnr8Rig3Nd/RwhzfftB33GVkjTPq5xzLLLoQTyvEea8wsYjQyk3NHq92rF8om8d+iT BWFmxgHutUmJkoHlnLEB+bCyjManQNQlMMzzVK5BoDlxV+TqsIIjl1Cpvl4TQQbi/bHf K/D0LO2lAFg5nD5rpIH0E/zoAg2yZDZqaOUnI= 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=lWB3JocQb6Rj216xEIp62sdM7cPNc7JPTo3ZXK+Y9HsfseBnZR1i+eSaaARcm6CmRz bnP6IrrNmlQwlgIv40k8iY/mGeccPzUrmr4VbTi9JQFTtkyFY1ULQUNVklm8cGjKnMHy CVUfjEQz740Rn1MEGBEQnpt9biwUa3kjvyUQI= Received: by 10.150.117.32 with SMTP id p32mr5028050ybc.115.1304129350050; Fri, 29 Apr 2011 19:09:10 -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.08 (version=SSLv3 cipher=OTHER); Fri, 29 Apr 2011 19:09:09 -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 08/10] ARM: ux500: use common scu_init_cpus Date: Fri, 29 Apr 2011 21:08:15 -0500 Message-Id: <1304129297-6614-9-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:12 +0000 (UTC) From: Rob Herring Convert ux500 to use common scu_init_cpus function. Signed-off-by: Rob Herring --- arch/arm/mach-ux500/platsmp.c | 17 +---------------- 1 files changed, 1 insertions(+), 16 deletions(-) diff --git a/arch/arm/mach-ux500/platsmp.c b/arch/arm/mach-ux500/platsmp.c index 88f30b8..7b19f9d 100644 --- a/arch/arm/mach-ux500/platsmp.c +++ b/arch/arm/mach-ux500/platsmp.c @@ -69,22 +69,7 @@ static void __init wakeup_secondary(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 - "U8500: 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)