[PATCH 02/12] powermac: support G5 CPU hotplug
Johannes Berg
johannes at sipsolutions.net
Fri Feb 9 02:38:19 EST 2007
On Thu, 2007-02-08 at 14:28 +0100, Johannes Berg wrote:
>
> +#ifdef CONFIG_CPU_HOTPLUG
> + /* if we have fake CPU hotplug just to support suspend to disk
> + * and can't really turn off a CPU, it may be taking timer interrupts
> + * even when it is dead. Avoid doing anything in that case so global
> + * state is not modified for and by a CPU that doesn't really exist. */
> + if (__get_cpu_var(cpu_state) == CPU_DEAD)
> + return;
> +#endif
Michael Buesch suggested to add an unlikely() there which I'll do for
the next round.
johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070208/a206218b/attachment.pgp>
More information about the Linuxppc-dev
mailing list