diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 1a2ebd39b800..a721cef7e2d4 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -949,6 +949,7 @@ struct sched_domain { | |||
949 | unsigned int smt_gain; | 949 | unsigned int smt_gain; |
950 | int flags; /* See SD_* */ | 950 | int flags; /* See SD_* */ |
951 | int level; | 951 | int level; |
952 | int idle_buddy; /* cpu assigned to select_idle_sibling() */ | ||
952 | 953 | ||
953 | /* Runtime fields. */ | 954 | /* Runtime fields. */ |
954 | unsigned long last_balance; /* init to jiffies. units in jiffies */ | 955 | unsigned long last_balance; /* init to jiffies. units in jiffies */ |
@@ -1244,6 +1245,9 @@ struct task_struct { | |||
1244 | const struct sched_class *sched_class; | 1245 | const struct sched_class *sched_class; |
1245 | struct sched_entity se; | 1246 | struct sched_entity se; |
1246 | struct sched_rt_entity rt; | 1247 | struct sched_rt_entity rt; |
1248 | #ifdef CONFIG_CGROUP_SCHED | ||
1249 | struct task_group *sched_task_group; | ||
1250 | #endif | ||
1247 | 1251 | ||
1248 | #ifdef CONFIG_PREEMPT_NOTIFIERS | 1252 | #ifdef CONFIG_PREEMPT_NOTIFIERS |
1249 | /* list of struct preempt_notifier: */ | 1253 | /* list of struct preempt_notifier: */ |
@@ -2721,7 +2725,7 @@ extern int sched_group_set_rt_period(struct task_group *tg, | |||
2721 | extern long sched_group_rt_period(struct task_group *tg); | 2725 | extern long sched_group_rt_period(struct task_group *tg); |
2722 | extern int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk); | 2726 | extern int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk); |
2723 | #endif | 2727 | #endif |
2724 | #endif | 2728 | #endif /* CONFIG_CGROUP_SCHED */ |
2725 | 2729 | ||
2726 | extern int task_can_switch_user(struct user_struct *up, | 2730 | extern int task_can_switch_user(struct user_struct *up, |
2727 | struct task_struct *tsk); | 2731 | struct task_struct *tsk); |