Re: [stable] [patch 09/12] Fix SMP poweroff hangs

Thomas Gleixner
2007-10-09T23:22:45Z

On Tue, 9 Oct 2007, Greg KH wrote:

> On Tue, Oct 09, 2007 at 10:17:02AM -0500, Olof Johansson wrote:
> > On Mon, Oct 08, 2007 at 11:06:33AM -0700, Greg KH wrote:
> > > From: Mark Lord <lkml@rtr.ca>
> > >
> > > commit 4047727e5ae33f9b8d2b7766d1994ea6e5ec2991 from upstream
> > >
> > > We need to disable all CPUs other than the boot CPU (usually 0) before
> > > attempting to power-off modern SMP machines. This fixes the
> > > hang-on-poweroff issue on my MythTV SMP box, and also on Thomas Gleixner's
> > > new toybox.
> >
> > Paul Mackerras has reported crashes when rebooting some older ppc64
> > systems due to this patch.
> >
> > See http://ozlabs.org/pipermail/linuxppc-dev/2007-October/043969.html.
>
> Has anything been done in mainline to possibly fix this?
>
> If not, I think we'll leave it in, as it does solve a number of reported
> problems.

Wrapping it into a #ifdef CONFIG_X86 would be sufficient.

tglx