login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
28
Re: [PATCH] disable non-boot CPUs before poweroff
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Rafael J. Wysocki <rjw@...>
To: Mark Lord <lkml@...>
Cc: Len Brown <lenb@...>, Linux Kernel <linux-kernel@...>, <simon.derr@...>
Subject:
Re: [PATCH] disable non-boot CPUs before poweroff
Date: Friday, September 28, 2007 - 11: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, 5:29 pm)
Re: Problems with SMP & ACPI powering off
, Rafael J. Wysocki
, (Thu Sep 27, 6:00 pm)
Re: Problems with SMP & ACPI powering off
, Len Brown
, (Fri Sep 28, 12:57 am)
Re: Problems with SMP & ACPI powering off
, Rafael J. Wysocki
, (Fri Sep 28, 8:55 am)
Re: Problems with SMP & ACPI powering off
, Mark Lord
, (Fri Sep 28, 9:22 am)
Re: Problems with SMP & ACPI powering off
, Rafael J. Wysocki
, (Fri Sep 28, 9:44 am)
Re: Problems with SMP & ACPI powering off
, Mark Lord
, (Fri Sep 28, 9:46 am)
[PATCH] disable non-boot CPUs before poweroff
, Mark Lord
, (Fri Sep 28, 9:52 am)
Re: [PATCH] disable non-boot CPUs before poweroff
, Thomas Gleixner
, (Fri Sep 28, 10:55 am)
[PATCH] (repost) Fix SMP poweroff hangs
, Mark Lord
, (Fri Sep 28, 3:53 pm)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Santiago Garcia Mantinan
, (Sun Sep 30, 5:00 am)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Mark Lord
, (Sun Sep 30, 1:21 pm)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Santiago Garcia Mantinan
, (Sun Sep 30, 1:54 pm)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Rafael J. Wysocki
, (Mon Oct 1, 4:05 pm)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Santiago Garcia Mantinan
, (Mon Oct 1, 6:38 pm)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Mark Lord
, (Sun Sep 30, 2:47 pm)
Re: [PATCH] (repost) Fix SMP poweroff hangs
, Santiago Garcia Mantinan
, (Sun Sep 30, 4:03 pm)
Re: 32-bit Athlon X2 won't poweroff (was: Fix SMP poweroff...
, Mark Lord
, (Sun Sep 30, 6:52 pm)
Re: 32-bit Athlon X2 won't poweroff (was: Fix SMP poweroff...
, Santiago Garcia Mantinan
, (Mon Oct 1, 12:19 pm)
Re: 32-bit Athlon X2 won't poweroff
, Mark Lord
, (Mon Oct 1, 12:37 pm)
Re: 32-bit Athlon X2 won't poweroff
, Mark Lord
, (Sun Sep 30, 6:56 pm)
Re: [PATCH] disable non-boot CPUs before poweroff
, Rafael J. Wysocki
, (Fri Sep 28, 11:05 am)
Re: [PATCH] disable non-boot CPUs before poweroff
, Thomas Gleixner
, (Fri Sep 28, 11:02 am)
Re: [PATCH] disable non-boot CPUs before poweroff
, Mark Lord
, (Fri Sep 28, 10:11 am)
Re: Problems with SMP & ACPI powering off
, Mark Lord
, (Thu Sep 27, 7:07 pm)
Re: Problems with SMP & ACPI powering off
, Mark Lord
, (Thu Sep 27, 5:30 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Parag Warudkar
BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0]
holzheu
[RFC/PATCH] Documentation of kernel messages
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Antonio Almeida
HTB accuracy for high speed
David Miller
[GIT]: Networking
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
790 guests
online.
Online users
Nelson
cbelgr90
Vince52
Syndicate