aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/init_task.h1
-rw-r--r--include/linux/sched.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index cae35b6b9aec..572c65bcc80f 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 0846f1f9e196..b07a2cf76401 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
852struct load_weight { 853struct 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)