Fix SMP poweroff hangs
commit4047727e5ae33f9b8d2b7766d1994ea6e5ec2991
authorMark Lord <lkml@rtr.ca>
Mon, 1 Oct 2007 08:20:10 +0000 (1 01:20 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 1 Oct 2007 14:52:23 +0000 (1 07:52 -0700)
tree70486b4524e672d800c2fbf36d06c73306efacf6
parent281e0e3b34acb76a157576d27abc85c09fcf78e3
Fix SMP poweroff hangs

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.

Signed-off-by: Mark Lord <mlord@pobox.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sys.c