Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751797Ab0K3X1v (ORCPT ); Tue, 30 Nov 2010 18:27:51 -0500 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:48536 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751513Ab0K3X1u (ORCPT ); Tue, 30 Nov 2010 18:27:50 -0500 Date: Tue, 30 Nov 2010 23:27:23 +0000 From: Russell King - ARM Linux To: Anton Vorontsov Cc: Kukjin Kim , Srinidhi Kasagar , Tony Lindgren , Catalin Marinas , Jamie Iles , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Colin Cross , linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 3/8] ARM: VExpress: Switch to generic SCU routines Message-ID: <20101130232723.GA14383@n2100.arm.linux.org.uk> References: <20101130171626.GA6165@oksana.dev.rtsoft.ru> <20101130171701.GC24034@oksana.dev.rtsoft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101130171701.GC24034@oksana.dev.rtsoft.ru> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 914 Lines: 26 On Tue, Nov 30, 2010 at 08:17:01PM +0300, Anton Vorontsov wrote: > +/* If there are more than one CPU let them know where to start. */ > +static void __init smp_point_cpus(void) > +{ > + if (num_present_cpus() <= 1) > + return; > > - for (i = 0; i < ncores; i++) > - set_cpu_possible(i, true); > + writel(~0, MMIO_P2V(V2M_SYS_FLAGSCLR)); > + writel(BSYM(virt_to_phys(scu_secondary_startup)), > + MMIO_P2V(V2M_SYS_FLAGSSET)); > } I don't see the point of separating this code from the code below. It doesn't seem to bring any benefit. Could you explain why it's necessary to separate this? > void __init smp_prepare_cpus(unsigned int max_cpus) > { ... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/