]> git.hungrycats.org Git - linux/commit
[PATCH] system_state splitup
authorAndrew Morton <akpm@osdl.org>
Wed, 19 May 2004 09:32:36 +0000 (02:32 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 19 May 2004 09:32:36 +0000 (02:32 -0700)
commitbf7c3d2de183a1c138ac667e41be357ce59f5998
tree4b8e80989797cc6f4a697226889ba5b09aea0251
parent2e7d2212302b8b660963aef7386d6719703f339d
[PATCH] system_state splitup

Split the system_state state `SYSTEM_SHUTDOWN' into SYSTEM_HALT,
SYSTEM_POWER_OFF and SYSTEM_RESTART and export system_state to modules.

This allows driver shutdown routines to know why they are being shutdown.  The
IDE subsystem wants this so that it knows to not spin the disks down across a
reboot.
include/linux/kernel.h
init/main.c
kernel/sys.c