Re: [PATCH] disable non-boot CPUs before poweroff

From: Thomas Gleixner
Date: Fri Sep 28 2007 - 11:02:46 EST


On Fri, 2007-09-28 at 17:05 +0200, Rafael J. Wysocki wrote:
> > if (pm_power_off_prepare)
> > pm_power_off_prepare();
> > sysdev_shutdown();
> > + disable_nonboot_cpus();
>
> Before sysdev_shutdown(), please.
>
> sysdev_shutdown() may touch things that belong to CPU0.

Damn, you're right. Missed that.

tglx




-
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/