summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-01-14 00:21:23 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-01-14 00:21:23 -0800
commite5b36baf5307d3d0987080b5304dbc01991324ae (patch)
tree2aca40a695106e962555b594bbfca58992251f71 /include/linux
parent821846686a3260c254a944553b1f0893b29ff0bd (diff)
[PATCH] Create a per-cpu proces counter for /proc reporting
proc_fill_super() simply wants a count of processes, not threads. This creates a per-cpu counter for it to use to determine that.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 1295d071376a..931cdf559eb2 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -27,6 +27,7 @@
#include <linux/compiler.h>
#include <linux/completion.h>
#include <linux/pid.h>
+#include <linux/percpu.h>
struct exec_domain;
@@ -87,6 +88,8 @@ extern unsigned long avenrun[]; /* Load averages */
extern int nr_threads;
extern int last_pid;
+DECLARE_PER_CPU(unsigned long, process_counts);
+extern int nr_processes(void);
extern unsigned long nr_running(void);
extern unsigned long nr_uninterruptible(void);
extern unsigned long nr_iowait(void);