|
@@ -1526,26 +1526,6 @@ static inline unsigned long wait_task_inactive(struct task_struct *p,
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-/*
|
|
|
- * Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring
|
|
|
- * subscriptions and synchronises with wait4(). Also used in procfs. Also
|
|
|
- * pins the final release of task.io_context. Also protects ->cpuset and
|
|
|
- * ->cgroup.subsys[]. And ->vfork_done.
|
|
|
- *
|
|
|
- * Nests both inside and outside of read_lock(&tasklist_lock).
|
|
|
- * It must not be nested with write_lock_irq(&tasklist_lock),
|
|
|
- * neither inside nor outside.
|
|
|
- */
|
|
|
-static inline void task_lock(struct task_struct *p)
|
|
|
-{
|
|
|
- spin_lock(&p->alloc_lock);
|
|
|
-}
|
|
|
-
|
|
|
-static inline void task_unlock(struct task_struct *p)
|
|
|
-{
|
|
|
- spin_unlock(&p->alloc_lock);
|
|
|
-}
|
|
|
-
|
|
|
/* set thread flags in other task's structures
|
|
|
* - see asm/thread_info.h for TIF_xxxx flags available
|
|
|
*/
|