Thread (37 messages) flat view 37 messages, 11 authors, 2012-02-11
STALE5322d

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

From: Russell King - ARM Linux <hidden>
Date: 2012-02-09 08:54:40

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help