From: Andrew Morton <akpm@linux-foundation.org>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Andi Kleen <ak@suse.de>, lkml <linux-kernel@vger.kernel.org>,
Chris Wright <chrisw@sous-sol.org>, Len Brown <lenb@kernel.org>,
Randy Dunlap <randy.dunlap@oracle.com>,
Al Viro <viro@zeniv.linux.org.uk>, Arnd Bergmann <arnd@arndb.de>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [patch 6/7] Add common orderly_poweroff()
Date: Mon, 16 Jul 2007 12:52:23 -0700 [thread overview]
Message-ID: <20070716125223.249a6914.akpm@linux-foundation.org> (raw)
In-Reply-To: <20070511000028.446470000@goop.org>
On Thu, 10 May 2007 16:57:14 -0700
Jeremy Fitzhardinge <jeremy@goop.org> wrote:
> Various pieces of code around the kernel want to be able to trigger an
> orderly poweroff. This pulls them together into a single
> implementation.
>
> By default the poweroff command is /sbin/poweroff, but it can be set
> via sysctl: kernel/poweroff_cmd. This is split at whitespace, so it
> can include command-line arguments.
>
> This patch replaces four other instances of invoking either "poweroff"
> or "shutdown -h now": one sparc64, two sbus drivers, and acpi thermal
> management.
>
> Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
> Acked-by: Len Brown <lenb@kernel.org>
> Cc: Chris Wright <chrisw@sous-sol.org>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Randy Dunlap <randy.dunlap@oracle.com>
> Cc: Andi Kleen <ak@suse.de>
> Cc: Al Viro <viro@zeniv.linux.org.uk>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: David S. Miller <davem@davemloft.net>
>
> ---
> arch/sparc64/kernel/power.c | 40 +-------------------------
> drivers/acpi/thermal.c | 24 +---------------
> drivers/sbus/char/bbc_envctrl.c | 5 +--
> drivers/sbus/char/envctrl.c | 7 +---
> include/linux/reboot.h | 5 +++
> include/linux/sysctl.h | 1
> kernel/sys.c | 58 +++++++++++++++++++++++++++++++++++++++
> kernel/sysctl.c | 10 ++++++
I'm not sure how this ended up in the x86 tree
(ftp://ftp.firstfloor.org/pub/ak/x86_64/quilt/patches/add-common-orderly_poweroff),
but recent changes in arch/sparc64/kernel/power.c have broken it.
Dave, those changes hit mainline without ever having appeared in the
sparc-2.6.git tree, afaict. If they _had_ appeared there I'd have been
able to tell you that there wasn't any point in changing code which we're
planning on deleting. Otoh,
[SPARC64]: Export powerd facilities for external entities.
Besides the existing usage for power-button interrupts, we'll
want to make use of this code for domain-services where the
LDOM manager can send reboot requests to the guest node.
make me think that this code isn't deleteable any more.
Ho hum, I will delete the sparc64 hunk and shall hope for the best. Mainly
to avoid downstream rejects - I suspect this patch needs revisting now.
Andi, your tree is looking pretty stale - I hope it will be updated soon?
next prev parent reply other threads:[~2007-07-16 19:54 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-10 23:57 [patch 0/7] A series of cleanup patches Jeremy Fitzhardinge
2007-05-10 23:57 ` [patch 1/7] i386: move common parts of smp into their own file Jeremy Fitzhardinge
2007-05-10 23:57 ` [patch 2/7] use elfnote.h to generate vsyscall notes Jeremy Fitzhardinge
2007-05-11 19:47 ` Roland McGrath
2007-05-11 19:48 ` Jeremy Fitzhardinge
2007-05-11 20:06 ` Jeremy Fitzhardinge
2007-05-10 23:57 ` [patch 3/7] add kstrndup Jeremy Fitzhardinge
2007-05-11 20:52 ` René Scharfe
2007-05-11 21:18 ` Jeremy Fitzhardinge
2007-05-10 23:57 ` [patch 4/7] add argv_split() Jeremy Fitzhardinge
2007-05-11 22:57 ` Randy Dunlap
2007-05-10 23:57 ` [patch 5/7] split usermodehelper setup from execution Jeremy Fitzhardinge
2007-05-10 23:57 ` [patch 6/7] Add common orderly_poweroff() Jeremy Fitzhardinge
2007-05-11 22:56 ` Randy Dunlap
2007-07-16 19:52 ` Andrew Morton [this message]
2007-07-16 19:59 ` Jeremy Fitzhardinge
2007-07-16 21:31 ` David Miller
2007-07-16 21:42 ` Andrew Morton
2007-05-10 23:57 ` [patch 7/7] tidy up usermode helper waiting a bit Jeremy Fitzhardinge
2007-05-11 19:45 ` Johannes Berg
2007-05-11 20:01 ` Jeremy Fitzhardinge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070716125223.249a6914.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=ak@suse.de \
--cc=arnd@arndb.de \
--cc=chrisw@sous-sol.org \
--cc=davem@davemloft.net \
--cc=jeremy@goop.org \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.