summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2003-10-21 18:20:57 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-10-21 18:20:57 -0700
commitcb37891bd656178d0593fa24bccc0f4539836511 (patch)
tree708f1418448eca98ec20ee460a506a66e344bb0a
parentd012fa6e6fd9f39eb04c977768b8353ef636456c (diff)
[PATCH] export system_running to other files
There seems to be no header file which declares system_running.
-rw-r--r--include/linux/kernel.h2
-rw-r--r--init/main.c2
-rw-r--r--kernel/kmod.c2
-rw-r--r--kernel/sys.c2
4 files changed, 3 insertions, 5 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 6403c9ef2210..6d4cb2db44db 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -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)
diff --git a/init/main.c b/init/main.c
index 2b9b862c1a75..610c7767e013 100644
--- a/init/main.c
+++ b/init/main.c
@@ -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
diff --git a/kernel/kmod.c b/kernel/kmod.c
index f5d658f704d9..2c74533c0b96 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
@@ -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
diff --git a/kernel/sys.c b/kernel/sys.c
index 9b914004fde8..f25fc2166ee0 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -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