aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-05-19 02:32:36 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-19 02:32:36 -0700
commitbf7c3d2de183a1c138ac667e41be357ce59f5998 (patch)
tree4b8e80989797cc6f4a697226889ba5b09aea0251 /init
parent2e7d2212302b8b660963aef7386d6719703f339d (diff)
downloadhistory-bf7c3d2de183a1c138ac667e41be357ce59f5998.tar.gz
[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.
Diffstat (limited to 'init')
-rw-r--r--init/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c
index 6913e1acfc04fa..63530aa09c05dc 100644
--- a/init/main.c
+++ b/init/main.c
@@ -95,7 +95,8 @@ extern void prepare_namespace(void);
extern void tc_init(void);
#endif
-int system_state; /* SYSTEM_BOOTING/RUNNING/SHUTDOWN */
+enum system_states system_state;
+EXPORT_SYMBOL(system_state);
/*
* Boot command-line arguments