[PATCH v5 4/5] msm: hotplug: support cpu hotplug on msm

Catalin Marinas catalin.marinas at arm.com
Thu Dec 16 07:55:28 EST 2010


On 16 December 2010 06:54, Jeff Ohlstein <johlstei at codeaurora.org> wrote:
> --- /dev/null
> +++ b/arch/arm/mach-msm/hotplug.c
[...]
> +static inline void platform_do_lowpower(unsigned int cpu)
> +{
> +       /* Just enter wfi for now. TODO: Properly shut off the cpu. */
> +       for (;;) {
> +               /*
> +                * here's the WFI
> +                */
> +               asm(".word      0xe320f003\n"
> +                   :
> +                   :
> +                   : "memory", "cc");

Is this for an ARMv7 platform? If yes, you could just use the WFI
instruction directly (and it would also work if compiling the kernel
to Thumb-2 mode).

-- 
Catalin



More information about the linux-arm-kernel mailing list