aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index b4b14c32b28a..1f16fb1fea22 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1186,18 +1186,6 @@ extern void wait_task_inactive(task_t * p);
1186#define remove_parent(p) list_del_init(&(p)->sibling) 1186#define remove_parent(p) list_del_init(&(p)->sibling)
1187#define add_parent(p) list_add_tail(&(p)->sibling,&(p)->parent->children) 1187#define add_parent(p) list_add_tail(&(p)->sibling,&(p)->parent->children)
1188 1188
1189#define REMOVE_LINKS(p) do { \
1190 if (thread_group_leader(p)) \
1191 list_del_init(&(p)->tasks); \
1192 remove_parent(p); \
1193 } while (0)
1194
1195#define SET_LINKS(p) do { \
1196 if (thread_group_leader(p)) \
1197 list_add_tail(&(p)->tasks,&init_task.tasks); \
1198 add_parent(p); \
1199 } while (0)
1200
1201#define next_task(p) list_entry((p)->tasks.next, struct task_struct, tasks) 1189#define next_task(p) list_entry((p)->tasks.next, struct task_struct, tasks)
1202#define prev_task(p) list_entry((p)->tasks.prev, struct task_struct, tasks) 1190#define prev_task(p) list_entry((p)->tasks.prev, struct task_struct, tasks)
1203 1191