aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 5f5ab98bbb6b..b4b14c32b28a 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1184,7 +1184,7 @@ extern void wait_task_inactive(task_t * p);
1184#endif 1184#endif
1185 1185
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, parent) list_add_tail(&(p)->sibling,&(parent)->children) 1187#define add_parent(p) list_add_tail(&(p)->sibling,&(p)->parent->children)
1188 1188
1189#define REMOVE_LINKS(p) do { \ 1189#define REMOVE_LINKS(p) do { \
1190 if (thread_group_leader(p)) \ 1190 if (thread_group_leader(p)) \
@@ -1195,7 +1195,7 @@ extern void wait_task_inactive(task_t * p);
1195#define SET_LINKS(p) do { \ 1195#define SET_LINKS(p) do { \
1196 if (thread_group_leader(p)) \ 1196 if (thread_group_leader(p)) \
1197 list_add_tail(&(p)->tasks,&init_task.tasks); \ 1197 list_add_tail(&(p)->tasks,&init_task.tasks); \
1198 add_parent(p, (p)->parent); \ 1198 add_parent(p); \
1199 } while (0) 1199 } while (0)
1200 1200
1201#define next_task(p) list_entry((p)->tasks.next, struct task_struct, tasks) 1201#define next_task(p) list_entry((p)->tasks.next, struct task_struct, tasks)