diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/init_task.h | 1 | ||||
| -rw-r--r-- | include/linux/sched.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index cae35b6b9a..572c65bcc8 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
| @@ -130,6 +130,7 @@ extern struct group_info init_groups; | |||
| 130 | .normal_prio = MAX_PRIO-20, \ | 130 | .normal_prio = MAX_PRIO-20, \ |
| 131 | .policy = SCHED_NORMAL, \ | 131 | .policy = SCHED_NORMAL, \ |
| 132 | .cpus_allowed = CPU_MASK_ALL, \ | 132 | .cpus_allowed = CPU_MASK_ALL, \ |
| 133 | .nr_cpus_allowed = NR_CPUS, \ | ||
| 133 | .mm = NULL, \ | 134 | .mm = NULL, \ |
| 134 | .active_mm = &init_mm, \ | 135 | .active_mm = &init_mm, \ |
| 135 | .run_list = LIST_HEAD_INIT(tsk.run_list), \ | 136 | .run_list = LIST_HEAD_INIT(tsk.run_list), \ |
diff --git a/include/linux/sched.h b/include/linux/sched.h index 0846f1f9e1..b07a2cf764 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -847,6 +847,7 @@ struct sched_class { | |||
| 847 | void (*set_curr_task) (struct rq *rq); | 847 | void (*set_curr_task) (struct rq *rq); |
| 848 | void (*task_tick) (struct rq *rq, struct task_struct *p); | 848 | void (*task_tick) (struct rq *rq, struct task_struct *p); |
| 849 | void (*task_new) (struct rq *rq, struct task_struct *p); | 849 | void (*task_new) (struct rq *rq, struct task_struct *p); |
| 850 | void (*set_cpus_allowed)(struct task_struct *p, cpumask_t *newmask); | ||
| 850 | }; | 851 | }; |
| 851 | 852 | ||
| 852 | struct load_weight { | 853 | struct load_weight { |
| @@ -956,6 +957,7 @@ struct task_struct { | |||
| 956 | 957 | ||
| 957 | unsigned int policy; | 958 | unsigned int policy; |
| 958 | cpumask_t cpus_allowed; | 959 | cpumask_t cpus_allowed; |
| 960 | int nr_cpus_allowed; | ||
| 959 | unsigned int time_slice; | 961 | unsigned int time_slice; |
| 960 | 962 | ||
| 961 | #if defined(CONFIG_SCHEDSTATS) || defined(CONFIG_TASK_DELAY_ACCT) | 963 | #if defined(CONFIG_SCHEDSTATS) || defined(CONFIG_TASK_DELAY_ACCT) |
