From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753562Ab1GFW4L (ORCPT ); Wed, 6 Jul 2011 18:56:11 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:36889 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752572Ab1GFW4K (ORCPT ); Wed, 6 Jul 2011 18:56:10 -0400 Date: Wed, 6 Jul 2011 23:55:50 +0100 From: Russell King - ARM Linux To: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-omap@vger.kernel.org, linux-sh@vger.kernel.org, linux-tegra@vger.kernel.org, Paul Mundt , Kukjin Kim , David Brown , Tony Lindgren , Srinidhi Kasagar , Linus Walleij Subject: Re: [PATCHv2] arm: platsmp: Allow secondary cpu hotplug with maxcpus=1 Message-ID: <20110706225550.GA28957@n2100.arm.linux.org.uk> References: <1309886957-7548-1-git-send-email-sboyd@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1309886957-7548-1-git-send-email-sboyd@codeaurora.org> 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 On Tue, Jul 05, 2011 at 10:29:17AM -0700, Stephen Boyd wrote: > If an ARM system has multiple cpus in the same socket and the > kernel is booted with maxcpus=1, secondary cpus are possible but > not present due to how platform_smp_prepare_cpus() is called. > Since most typical ARM processors don't actually support physical > hotplug, initialize the present map to be equal to the possible > map in generic ARM SMP code. Also, always call > platform_smp_prepare_cpus() as long as max_cpus is non-zero (0 > means no SMP) to allow platform code to do any SMP setup. > > After applying this patch it's possible to boot an ARM system > with maxcpus=1 on the command line and then hotplug in secondary > cpus via sysfs. This is more in line with how x86 does things. Ok - how about putting this in the patch system? Thanks.