WSL2-Linux-Kernel/drivers/sbus/char
Jeremy Fitzhardinge 10a0a8d4e3 Add common orderly_poweroff()
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": two sbus drivers, and acpi thermal
management.

sparc64 has its own "powerd"; still need to determine whether it should
be replaced by orderly_poweroff().

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Acked-by: Len Brown <lenb@kernel.org>
Signed-off-by: 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>
2007-07-18 08:47:40 -07:00
..
Kconfig [SPARC]: Remove the broken SUN_AURORA driver. 2007-02-26 11:35:45 -08:00
Makefile [SPARC]: Remove the broken SUN_AURORA driver. 2007-02-26 11:35:45 -08:00
bbc_envctrl.c Add common orderly_poweroff() 2007-07-18 08:47:40 -07:00
bbc_i2c.c [SPARC] SBUS: bbc_i2c.c needs asm/io.h 2007-05-13 22:22:13 -07:00
bbc_i2c.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bpp.c Fix misspellings collected by members of KJ list. 2007-05-09 07:14:03 +02:00
cpwatchdog.c cpwatchdog build fix 2007-07-16 09:05:53 -07:00
display7seg.c [SPARC] SBUS: display7seg.c needs asm/io.h 2007-05-13 22:22:47 -07:00
envctrl.c Add common orderly_poweroff() 2007-07-18 08:47:40 -07:00
flash.c [SPARC]: Missing #include <linux/mm.h> in drivers/sbus/char/flash.c 2007-05-31 01:52:53 -07:00
jsflash.c unregister_blkdev() delete redundant messages in callers 2007-07-17 10:23:03 -07:00
max1617.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
openprom.c [OPENPROM]: Use pci_device_to_OF_node(). 2007-04-26 01:54:59 -07:00
riowatchdog.c [PATCH] mark struct file_operations const 6 2007-02-12 09:48:45 -08:00
rtc.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
uctrl.c [SPARC] uctrl: Check request_irq() return value. 2007-02-26 11:35:51 -08:00
vfc.h [PATCH] devfs: Remove the devfs_fs_kernel.h file from the tree 2006-06-26 12:25:08 -07:00
vfc_dev.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
vfc_i2c.c Various typo fixes. 2007-02-17 19:07:33 +01:00
vfc_i2c.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00