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

From: Catalin Marinas
Date: Thu Dec 16 2010 - 07:55:37 EST


On 16 December 2010 06:54, Jeff Ohlstein <johlstei@xxxxxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/