diff options
| author | Jeremy Fitzhardinge <[email protected]> | 2007-07-17 18:37:02 -0700 |
|---|---|---|
| committer | Jeremy Fitzhardinge <[email protected]> | 2007-07-18 08:47:40 -0700 |
| commit | 10a0a8d4e3f6bf2d077f94344441909abe670f5a (patch) | |
| tree | b834c912629498e9fefb5958ee9965c414d32d69 /include/linux/debugobjects.h | |
| parent | 0ab4dc92278a0f3816e486d6350c6652a72e06c8 (diff) | |
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 <[email protected]>
Acked-by: Len Brown <[email protected]>
Signed-off-by: Chris Wright <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Randy Dunlap <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions