]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] export system_running to other files
authorAndrew Morton <akpm@osdl.org>
Wed, 22 Oct 2003 01:20:57 +0000 (18:20 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 22 Oct 2003 01:20:57 +0000 (18:20 -0700)
There seems to be no header file which declares system_running.

include/linux/kernel.h
init/main.c
kernel/kmod.c
kernel/sys.c

index 6403c9ef22101624d5c314fd848c7b082df7f91e..6d4cb2db44dbc40a2573525375cb86170e1ae641 100644 (file)
@@ -101,7 +101,7 @@ 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_running;
 extern int tainted;
 extern const char *print_tainted(void);
 #define TAINT_PROPRIETARY_MODULE       (1<<0)
index 2b9b862c1a7504c94d35d1091ba953748667ad31..610c7767e013401dccc2bbf5d460487f210f581a 100644 (file)
@@ -94,7 +94,7 @@ extern void tc_init(void);
  * Are we up and running (ie do we have all the infrastructure
  * set up)
  */
-int system_running = 0;
+int system_running;
 
 /*
  * Boot command-line arguments
index f5d658f704d93e5a0570a07434653671203da8d9..2c74533c0b963c563230b4e92522f1a8999dbda0 100644 (file)
@@ -36,7 +36,7 @@
 #include <linux/kernel.h>
 #include <asm/uaccess.h>
 
-extern int max_threads, system_running;
+extern int max_threads;
 
 #ifdef CONFIG_KMOD
 
index 9b914004fde875624ce3b7be4af40b7cb8b91cde..f25fc2166ee0903b345b3d54cd75eb8c3f949dc0 100644 (file)
@@ -78,8 +78,6 @@ EXPORT_SYMBOL(fs_overflowgid);
 int C_A_D = 1;
 int cad_pid = 1;
 
-extern int system_running;
-
 /*
  *     Notifier list for kernel code which wants to be called
  *     at shutdown. This is used to stop any idling DMA operations