Re: hotplug and init section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 22, 2010 at 12:33:08PM -0700, smuckle@xxxxxxxxxxxxxx wrote:
> I'm working on hotplug support. It looks like currently only mach-realview
> supports this on ARM, and it does not fully power down the core.  The core
> just goes into wfi. If we fully power down the core being hot-removed, we
> need to rerun the processor init, enable mmu, turn on mmu, etc when it is
> brought back up.

That's all sane.

> This code is currently all put in the .init section.

Not all of it.  The generic secondary CPU startup code (arch/arm/kernel/smp.c)
will live in core if hotplug cpu is selected - this is why its marked
with __cpuinit.  So secondary_start_kernel() et.al. is already fine.

> Changing things so
> that the code required for bringing up secondary cores is still present
> after init looks to be a fairly big change. As such I wanted to see if
> anyone had thoughts here before I start hacking up head.S, the linker
> script, etc.

No need to hack the linker script - all you need to do is to ensure that
the required parts of code are placed in the cpuinit sections - and there's
a macro to do that called "__CPUINIT" (which equates to a .section
directive.)

You'll need to ensure that stuff which shouldn't be in the cpuinit
section remains as-is, so you'll have to also add __INIT or
.section .text as appropriate.
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux