patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / include / linux / kernel.h
index c1171e7..67da15c 100644 (file)
@@ -109,14 +109,17 @@ static inline void console_verbose(void)
 extern void bust_spinlocks(int yes);
 extern int oops_in_progress;           /* If set, an oops, panic(), BUG() or die() is in progress */
 extern int panic_on_oops;
-extern int system_state;               /* See values below */
 extern int tainted;
 extern const char *print_tainted(void);
 
 /* Values used for system_state */
-#define SYSTEM_BOOTING 0
-#define SYSTEM_RUNNING 1
-#define SYSTEM_SHUTDOWN 2
+extern enum system_states {
+       SYSTEM_BOOTING,
+       SYSTEM_RUNNING,
+       SYSTEM_HALT,
+       SYSTEM_POWER_OFF,
+       SYSTEM_RESTART,
+} system_state;
 
 #define TAINT_PROPRIETARY_MODULE       (1<<0)
 #define TAINT_FORCED_MODULE            (1<<1)