aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/pid.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/pid.c')
-rw-r--r--kernel/pid.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/kernel/pid.c b/kernel/pid.c
index 7781d9999058..a9f2dfd006d2 100644
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -247,16 +247,8 @@ void __init pidhash_init(void)
247 247
248void __init pidmap_init(void) 248void __init pidmap_init(void)
249{ 249{
250 int i;
251
252 pidmap_array->page = (void *)get_zeroed_page(GFP_KERNEL); 250 pidmap_array->page = (void *)get_zeroed_page(GFP_KERNEL);
251 /* Reserve PID 0. We never call free_pidmap(0) */
253 set_bit(0, pidmap_array->page); 252 set_bit(0, pidmap_array->page);
254 atomic_dec(&pidmap_array->nr_free); 253 atomic_dec(&pidmap_array->nr_free);
255
256 /*
257 * Allocate PID 0, and hash it via all PID types:
258 */
259
260 for (i = 0; i < PIDTYPE_MAX; i++)
261 attach_pid(current, i, 0);
262} 254}