diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 87e0fb212..1ad6ea2b3 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -142,6 +142,8 @@ extern void init_idle(void); extern void show_state(void); extern void cpu_init (void); extern void trap_init(void); +extern void update_one_process( struct task_struct *p, + unsigned long ticks, unsigned long user, unsigned long system, int cpu); #define MAX_SCHEDULE_TIMEOUT LONG_MAX extern signed long FASTCALL(schedule_timeout(signed long timeout)); @@ -823,8 +825,8 @@ extern inline int task_on_runqueue(struct task_struct *p) extern inline void unhash_process(struct task_struct *p) { if (task_on_runqueue(p)) BUG(); - nr_threads--; write_lock_irq(&tasklist_lock); + nr_threads--; unhash_pid(p); REMOVE_LINKS(p); write_unlock_irq(&tasklist_lock); |