[PATCH v6 02/15] ARM: SoC: Add per SoC SMP and CPU hotplug operations

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Feb 9 03:54:40 EST 2012


On Wed, Feb 08, 2012 at 12:30:46AM +0000, 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.

NAK.

Why do we need two structures, one for init and one for non-init.  Where
these are used, they're both marked with __initdata.

If anything, you want to separate out the hotplug stuff, because you'll
be referencing __cpu* marked functions from __initdata, which I believe
will give a section mismatch warning.

Also, you'll get section mismatch warnings for calling __cpuinit functions
from __cpuexit marked code.

You did build this with CONFIG_DEBUG_SECTION_MISMATCH=y before sending it
out?

So, all in all this causes a lot of additional section mismatches, and so
needs reworking.



More information about the linux-arm-kernel mailing list