diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pspace.h | 7 | ||||
-rw-r--r-- | include/linux/sched.h | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/pspace.h b/include/linux/pspace.h index a8a064b0ad18..91d48b8b2d99 100644 --- a/include/linux/pspace.h +++ b/include/linux/pspace.h | |||
@@ -13,4 +13,11 @@ struct pidmap { | |||
13 | 13 | ||
14 | #define PIDMAP_ENTRIES ((PID_MAX_LIMIT + 8*PAGE_SIZE - 1)/PAGE_SIZE/8) | 14 | #define PIDMAP_ENTRIES ((PID_MAX_LIMIT + 8*PAGE_SIZE - 1)/PAGE_SIZE/8) |
15 | 15 | ||
16 | struct pspace { | ||
17 | struct pidmap pidmap[PIDMAP_ENTRIES]; | ||
18 | int last_pid; | ||
19 | }; | ||
20 | |||
21 | extern struct pspace init_pspace; | ||
22 | |||
16 | #endif /* _LINUX_PSPACE_H */ | 23 | #endif /* _LINUX_PSPACE_H */ |
diff --git a/include/linux/sched.h b/include/linux/sched.h index dd6c2164e4a4..3b7c99265ace 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -118,7 +118,6 @@ extern unsigned long avenrun[]; /* Load averages */ | |||
118 | 118 | ||
119 | extern unsigned long total_forks; | 119 | extern unsigned long total_forks; |
120 | extern int nr_threads; | 120 | extern int nr_threads; |
121 | extern int last_pid; | ||
122 | DECLARE_PER_CPU(unsigned long, process_counts); | 121 | DECLARE_PER_CPU(unsigned long, process_counts); |
123 | extern int nr_processes(void); | 122 | extern int nr_processes(void); |
124 | extern unsigned long nr_running(void); | 123 | extern unsigned long nr_running(void); |