linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 02/10] ARM: SoC: Add per SoC SMP and CPU hotplug operations
Date: Tue, 04 Oct 2011 10:44:38 +0100	[thread overview]
Message-ID: <4E8AD586.7060209@arm.com> (raw)
In-Reply-To: <alpine.LFD.2.02.1110031508270.9106@xanadu.home>

On 03/10/11 20:12, Nicolas Pitre wrote:
> On Mon, 3 Oct 2011, Marc Zyngier wrote:
> 
>> Populate the SoC descriptor structure with the SMP and CPU hotplug
>> operations. To allow the kernel to continue building, the platform
>> hooks are defined as weak symbols which are overrided by the
>> platform code. Once all platforms are converted, the "weak" attribute
>> will be removed and the function made static.
>>
>> Cc: Arnd Bergmann <arnd@arndb.de>
>> Cc: Nicolas Pitre <nico@fluxnic.net>
>> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
>> ---
> [...]
>> --- a/arch/arm/kernel/setup.c
>> +++ b/arch/arm/kernel/setup.c
>> @@ -141,8 +141,12 @@ static const char *cpu_name;
>>  static const char *machine_name;
>>  static char __initdata cmd_line[COMMAND_LINE_SIZE];
>>  struct machine_desc *machine_desc __initdata;
>> -const struct arm_soc_desc *soc_desc;
>> -static struct arm_soc_desc __soc_desc __read_mostly;
>> +const struct arm_soc_desc *soc_desc __initdata;
> 
> Does the above belong in this patch?

Looks like a leftover from a previous rework. Will fix.

>> +#ifdef CONFIG_SMP
>> +const struct arm_soc_smp_init_ops *soc_smp_init_ops  __initdata;
>> +const struct arm_soc_smp_ops *soc_smp_ops  __cpuinitdata;
>> +static struct arm_soc_smp_ops __soc_smp_ops __cpuinitdata;
>> +#endif
> 
> Maybe those could be moved in smp.c instead.

Good point, this actually makes a nice cleanup (the assignment of these
variables can also move to smp.c, making them static).

I'll repost the 3 affected patches shortly.

Thanks for reviewing,

	M.
-- 
Jazz is not dead. It just smells funny...

  reply	other threads:[~2011-10-04  9:44 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-03 17:35 [PATCH v4 00/10] Per SoC descriptor Marc Zyngier
2011-10-03 17:35 ` [PATCH v4 01/10] ARM: SoC: Introduce per " Marc Zyngier
2011-10-03 17:35 ` [PATCH v4 02/10] ARM: SoC: Add per SoC SMP and CPU hotplug operations Marc Zyngier
2011-10-03 19:12   ` Nicolas Pitre
2011-10-04  9:44     ` Marc Zyngier [this message]
2011-10-04 10:30   ` Kyungmin Park
2011-10-04 10:35     ` Kyungmin Park
2011-10-03 17:35 ` [PATCH v4 03/10] ARM: SoC: convert VExpress/RealView to SoC descriptor Marc Zyngier
2011-10-03 17:35 ` [PATCH v4 04/10] ARM: SoC: convert OMAP4 " Marc Zyngier
2011-10-04  6:32   ` Shilimkar, Santosh
2011-10-04  9:44     ` Marc Zyngier
2011-10-03 17:35 ` [PATCH v4 05/10] ARM: SoC: convert Tegra " Marc Zyngier
2011-10-03 20:52   ` Stephen Warren
2011-10-04  9:47     ` Marc Zyngier
2011-10-03 17:35 ` [PATCH v4 06/10] ARM: SoC: convert Exynos4 " Marc Zyngier
2011-10-04 11:01   ` Kyungmin Park
2011-10-04 12:33     ` Marc Zyngier
2011-10-04 13:16   ` Kukjin Kim
2011-10-04 13:48     ` Marc Zyngier
2011-10-05  1:22       ` Kukjin Kim
2011-10-03 17:35 ` [PATCH v4 07/10] ARM: SoC: convert MSM SMP " Marc Zyngier
2011-10-03 17:35 ` [PATCH v4 08/10] ARM: SoC: convert ux500 " Marc Zyngier
2011-10-03 17:35 ` [PATCH v4 09/10] ARM: SoC: convert shmobile sh73a0 " Marc Zyngier
2011-10-03 17:35 ` [PATCH v4 10/10] ARM: smp: Make SoC descriptor mandatory for SMP platforms Marc Zyngier

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=4E8AD586.7060209@arm.com \
    --to=marc.zyngier@arm.com \
    --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;
as well as URLs for NNTP newsgroup(s).