diff options
author | Li Zefan <lizefan@huawei.com> | 2013-03-05 03:07:33 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-03-06 05:24:34 -0500 |
commit | 25cc7da7e6336d3bb6a5bad3d3fa96fce9a81d5b (patch) | |
tree | f039848c9d9ef5a3baf50b3a40eaa867b013e40f /include | |
parent | 15f803c94bd92b17708aad9e74226fd0b2c9130c (diff) |
sched: Move group scheduling functions out of include/linux/sched.h
- Make sched_group_{set_,}runtime(), sched_group_{set_,}period()
and sched_rt_can_attach() static.
- Move sched_{create,destroy,online,offline}_group() to
kernel/sched/sched.h.
- Remove declaration of sched_group_shares().
Signed-off-by: Li Zefan <lizefan@huawei.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/5135A7C5.3000708@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index eadd113e1eb2..fc039ceccbea 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2512,28 +2512,7 @@ extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask); | |||
2512 | extern long sched_getaffinity(pid_t pid, struct cpumask *mask); | 2512 | extern long sched_getaffinity(pid_t pid, struct cpumask *mask); |
2513 | 2513 | ||
2514 | #ifdef CONFIG_CGROUP_SCHED | 2514 | #ifdef CONFIG_CGROUP_SCHED |
2515 | |||
2516 | extern struct task_group root_task_group; | 2515 | extern struct task_group root_task_group; |
2517 | |||
2518 | extern struct task_group *sched_create_group(struct task_group *parent); | ||
2519 | extern void sched_online_group(struct task_group *tg, | ||
2520 | struct task_group *parent); | ||
2521 | extern void sched_destroy_group(struct task_group *tg); | ||
2522 | extern void sched_offline_group(struct task_group *tg); | ||
2523 | extern void sched_move_task(struct task_struct *tsk); | ||
2524 | #ifdef CONFIG_FAIR_GROUP_SCHED | ||
2525 | extern int sched_group_set_shares(struct task_group *tg, unsigned long shares); | ||
2526 | extern unsigned long sched_group_shares(struct task_group *tg); | ||
2527 | #endif | ||
2528 | #ifdef CONFIG_RT_GROUP_SCHED | ||
2529 | extern int sched_group_set_rt_runtime(struct task_group *tg, | ||
2530 | long rt_runtime_us); | ||
2531 | extern long sched_group_rt_runtime(struct task_group *tg); | ||
2532 | extern int sched_group_set_rt_period(struct task_group *tg, | ||
2533 | long rt_period_us); | ||
2534 | extern long sched_group_rt_period(struct task_group *tg); | ||
2535 | extern int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk); | ||
2536 | #endif | ||
2537 | #endif /* CONFIG_CGROUP_SCHED */ | 2516 | #endif /* CONFIG_CGROUP_SCHED */ |
2538 | 2517 | ||
2539 | extern int task_can_switch_user(struct user_struct *up, | 2518 | extern int task_can_switch_user(struct user_struct *up, |