diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index f436a6bd3fb7..a94e1c31131b 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -56,8 +56,7 @@ static void __unhash_process(struct task_struct *p) | |||
56 | detach_pid(p, PIDTYPE_SID); | 56 | detach_pid(p, PIDTYPE_SID); |
57 | 57 | ||
58 | list_del_init(&p->tasks); | 58 | list_del_init(&p->tasks); |
59 | if (p->pid) | 59 | __get_cpu_var(process_counts)--; |
60 | __get_cpu_var(process_counts)--; | ||
61 | } | 60 | } |
62 | 61 | ||
63 | remove_parent(p); | 62 | remove_parent(p); |
@@ -118,21 +117,6 @@ repeat: | |||
118 | goto repeat; | 117 | goto repeat; |
119 | } | 118 | } |
120 | 119 | ||
121 | /* we are using it only for SMP init */ | ||
122 | |||
123 | void unhash_process(struct task_struct *p) | ||
124 | { | ||
125 | struct dentry *proc_dentry; | ||
126 | |||
127 | spin_lock(&p->proc_lock); | ||
128 | proc_dentry = proc_pid_unhash(p); | ||
129 | write_lock_irq(&tasklist_lock); | ||
130 | __unhash_process(p); | ||
131 | write_unlock_irq(&tasklist_lock); | ||
132 | spin_unlock(&p->proc_lock); | ||
133 | proc_pid_flush(proc_dentry); | ||
134 | } | ||
135 | |||
136 | /* | 120 | /* |
137 | * This checks not only the pgrp, but falls back on the pid if no | 121 | * This checks not only the pgrp, but falls back on the pid if no |
138 | * satisfactory pgrp is found. I dunno - gdb doesn't work correctly | 122 | * satisfactory pgrp is found. I dunno - gdb doesn't work correctly |