diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2008-01-25 15:08:27 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-25 15:08:27 -0500 |
commit | fa717060f1ab7eb6570f2fb49136f838fc9195a9 (patch) | |
tree | 0338460dae3116563645e3bfa1ff5100d39826f8 /include/linux/init_task.h | |
parent | 8eb703e4f33488bf75829564d51d427e17f7cd4c (diff) |
sched: sched_rt_entity
Move the task_struct members specific to rt scheduling together.
A future optimization could be to put sched_entity and sched_rt_entity
into a union.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
CC: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r-- | include/linux/init_task.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 572c65bcc80f..ee65d87bedb7 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
@@ -133,9 +133,10 @@ extern struct group_info init_groups; | |||
133 | .nr_cpus_allowed = NR_CPUS, \ | 133 | .nr_cpus_allowed = NR_CPUS, \ |
134 | .mm = NULL, \ | 134 | .mm = NULL, \ |
135 | .active_mm = &init_mm, \ | 135 | .active_mm = &init_mm, \ |
136 | .run_list = LIST_HEAD_INIT(tsk.run_list), \ | 136 | .rt = { \ |
137 | .run_list = LIST_HEAD_INIT(tsk.rt.run_list), \ | ||
138 | .time_slice = HZ, }, \ | ||
137 | .ioprio = 0, \ | 139 | .ioprio = 0, \ |
138 | .time_slice = HZ, \ | ||
139 | .tasks = LIST_HEAD_INIT(tsk.tasks), \ | 140 | .tasks = LIST_HEAD_INIT(tsk.tasks), \ |
140 | .ptrace_children= LIST_HEAD_INIT(tsk.ptrace_children), \ | 141 | .ptrace_children= LIST_HEAD_INIT(tsk.ptrace_children), \ |
141 | .ptrace_list = LIST_HEAD_INIT(tsk.ptrace_list), \ | 142 | .ptrace_list = LIST_HEAD_INIT(tsk.ptrace_list), \ |