login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
28
Re: [PATCH] disable non-boot CPUs before poweroff
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Rafael J. Wysocki
Subject:
Re: [PATCH] disable non-boot CPUs before poweroff
Date: Friday, September 28, 2007 - 8:05 am
On Friday, 28 September 2007 15:52, Mark Lord wrote:
quoted text
> > We need to disable all CPUs other than the boot CPU (usually 0) > before attempting to power-off modern SMP machines. > This seems to fix the hang-on-poweroff issue > that one of my SMP boxes exhibits. More testing required. > > Signed-off-by: Mark Lord <mlord@pobox.com> > --- > > --- linux/kernel/sys.c.orig 2007-09-13 09:49:11.000000000 -0400 > +++ linux/kernel/sys.c 2007-09-28 09:48:54.000000000 -0400 > @@ -32,6 +32,7 @@ > #include <linux/getcpu.h> > #include <linux/task_io_accounting_ops.h> > #include <linux/seccomp.h> > +#include <linux/cpu.h> > > #include <linux/compat.h> > #include <linux/syscalls.h> > @@ -879,6 +880,7 @@ > 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.
quoted text
> printk(KERN_EMERG "Power down.\n"); > machine_power_off(); > }
Greetings, Rafael -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Problems with SMP & ACPI powering off
, Mark Lord
, (Thu Sep 27, 2:29 pm)
Re: Problems with SMP & ACPI powering off
, Mark Lord
, (Thu Sep 27, 2:30 pm)
Re: Problems with SMP & ACPI powering off
, Rafael J. Wysocki
, (Thu Sep 27, 3:00 pm)
Re: Problems with SMP & ACPI powering off
, Mark Lord
, (Thu Sep 27, 4:07 pm)
Re: Problems with SMP & ACPI powering off
, Len Brown
, (Thu Sep 27, 9:57 pm)
Re: Problems with SMP & ACPI powering off
, Rafael J. Wysocki
, (Fri Sep 28, 5:55 am)
Re: Problems with SMP & ACPI powering off
, Mark Lord
, (Fri Sep 28, 6:22 am)
Re: Problems with SMP & ACPI powering off
, Rafael J. Wysocki
, (Fri Sep 28, 6:44 am)
Re: Problems with SMP & ACPI powering off
, Mark Lord
, (Fri Sep 28, 6:46 am)
[PATCH] disable non-boot CPUs before poweroff
, Mark Lord
, (Fri Sep 28, 6:52 am)
Re: [PATCH] disable non-boot CPUs before poweroff
, Mark Lord
, (Fri Sep 28, 7:11 am)
Re: [PATCH] disable non-boot CPUs before poweroff
, Thomas Gleixner
, (Fri Sep 28, 7:55 am)
Re: [PATCH] disable non-boot CPUs before poweroff
, Thomas Gleixner
, (Fri Sep 28, 8:02 am)
Re: [PATCH] disable non-boot CPUs before poweroff
, Rafael J. Wysocki
, (Fri Sep 28, 8:05 am)
[PATCH] (repost) Fix SMP poweroff hangs
, Mark Lord
, (Fri Sep 28, 12:53 pm)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Santiago Garcia Mantinan
, (Sun Sep 30, 2:00 am)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Mark Lord
, (Sun Sep 30, 10:21 am)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Santiago Garcia Mantinan
, (Sun Sep 30, 10:54 am)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Mark Lord
, (Sun Sep 30, 11:47 am)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Santiago Garcia Mantinan
, (Sun Sep 30, 1:03 pm)
Re: 32-bit Athlon X2 won't poweroff (was: Fix SMP powero ...
, Mark Lord
, (Sun Sep 30, 3:52 pm)
Re: 32-bit Athlon X2 won't poweroff
, Mark Lord
, (Sun Sep 30, 3:56 pm)
Re: 32-bit Athlon X2 won't poweroff (was: Fix SMP powero ...
, Santiago Garcia Mantinan
, (Mon Oct 1, 9:19 am)
Re: 32-bit Athlon X2 won't poweroff
, Mark Lord
, (Mon Oct 1, 9:37 am)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Rafael J. Wysocki
, (Mon Oct 1, 1:05 pm)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Santiago Garcia Mantinan
, (Mon Oct 1, 3:38 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate