From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] arm: platsmp: Allow secondary cpu hotplug with
Date: Thu, 30 Jun 2011 13:11:54 +0000 [thread overview]
Message-ID: <20110630131154.GJ23312@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1309372300-28911-1-git-send-email-sboyd@codeaurora.org>
On Wed, Jun 29, 2011 at 11:31:39AM -0700, Stephen Boyd wrote:
> void __init platform_smp_prepare_cpus(unsigned int max_cpus)
> {
> - int i;
> -
> /*
> * Initialise the present map, which describes the set of CPUs
> * actually populated at the present time.
> */
> - for (i = 0; i < max_cpus; i++)
> - set_cpu_present(i, true);
> + init_cpu_present(&cpu_possible_map);
Ok, if we're now doing this in every platform, it might as well go into
arch/arm/kernel/smp.c - platforms can re-initialize the present map
in this callback if they need to do something different.
next prev parent reply other threads:[~2011-06-30 13:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-29 18:31 [PATCH] arm: platsmp: Allow secondary cpu hotplug with maxcpus=1 Stephen Boyd
2011-06-30 5:38 ` Paul Mundt
2011-06-30 13:11 ` Russell King - ARM Linux [this message]
2011-06-30 16:36 ` Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110630131154.GJ23312@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox