From: Greg Kroah-Hartman Date: Thu, 13 Dec 2007 05:29:17 +0000 (-0800) Subject: revert a 2.6.22.10 shutdown patch as it is causing problems X-Git-Tag: v2.6.23.10~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=661a9eb72de190af0d1388a02053234b78eb562d;p=thirdparty%2Fkernel%2Fstable-queue.git revert a 2.6.22.10 shutdown patch as it is causing problems --- diff --git a/queue-2.6.22/revert-fix-smp-poweroff-hangs.patch b/queue-2.6.22/revert-fix-smp-poweroff-hangs.patch new file mode 100644 index 00000000000..56702efeb6a --- /dev/null +++ b/queue-2.6.22/revert-fix-smp-poweroff-hangs.patch @@ -0,0 +1,54 @@ +From 4047727e5ae33f9b8d2b7766d1994ea6e5ec2991 Mon Sep 17 00:00:00 2001 +From: Greg Kroah-Hartman +Date: Thu, 13 Dec 2007 13:20:32 +0800 +Subject: Revert "Fix SMP poweroff hangs" + +From: Greg Kroah-Hartman + +This reverts the following changeset in 2.6.22.10 that caused a lot of +reported problems. + + From: Mark Lord + + 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. + + Signed-off-by: Mark Lord + Acked-by: Thomas Gleixner + Cc: "Rafael J. Wysocki" + Signed-off-by: Andrew Morton + Signed-off-by: Linus Torvalds + Signed-off-by: Greg Kroah-Hartman + +There still is a remaining shutdown problem in 2.6.22 with old APM based +systems, but this fix is not the correct one + +Signed-off-by: Greg Kroah-Hartman + + +--- + kernel/sys.c | 2 -- + 1 file changed, 2 deletions(-) + +--- a/kernel/sys.c ++++ b/kernel/sys.c +@@ -31,7 +31,6 @@ + #include + #include + #include +-#include + + #include + #include +@@ -866,7 +865,6 @@ EXPORT_SYMBOL_GPL(kernel_halt); + void kernel_power_off(void) + { + kernel_shutdown_prepare(SYSTEM_POWER_OFF); +- disable_nonboot_cpus(); + printk(KERN_EMERG "Power down.\n"); + machine_power_off(); + } diff --git a/queue-2.6.22/series b/queue-2.6.22/series index b9308addc34..2878377050d 100644 --- a/queue-2.6.22/series +++ b/queue-2.6.22/series @@ -28,3 +28,4 @@ ipv6-restore-ipv6-when-mtu-is-big-enough.patch decnet-dn_nl_deladdr-almost-always-returns-no-error.patch bridge-lost-call-to-br_fdb_fini-in-br_init-error-path.patch knfsd-validate-filehandle-type-in-fsid_source.patch +revert-fix-smp-poweroff-hangs.patch