aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index f0a50b20e8a0..46d680643f89 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1418,6 +1418,9 @@ struct task_struct {
1418#endif 1418#endif
1419}; 1419};
1420 1420
1421/* Future-safe accessor for struct task_struct's cpus_allowed. */
1422#define tsk_cpumask(tsk) (&(tsk)->cpus_allowed)
1423
1421/* 1424/*
1422 * Priority of a process goes from 0..MAX_PRIO-1, valid RT 1425 * Priority of a process goes from 0..MAX_PRIO-1, valid RT
1423 * priority is 0..MAX_RT_PRIO-1, and SCHED_NORMAL/SCHED_BATCH 1426 * priority is 0..MAX_RT_PRIO-1, and SCHED_NORMAL/SCHED_BATCH
@@ -2303,9 +2306,13 @@ extern long sched_group_rt_runtime(struct task_group *tg);
2303extern int sched_group_set_rt_period(struct task_group *tg, 2306extern int sched_group_set_rt_period(struct task_group *tg,
2304 long rt_period_us); 2307 long rt_period_us);
2305extern long sched_group_rt_period(struct task_group *tg); 2308extern long sched_group_rt_period(struct task_group *tg);
2309extern int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk);
2306#endif 2310#endif
2307#endif 2311#endif
2308 2312
2313extern int task_can_switch_user(struct user_struct *up,
2314 struct task_struct *tsk);
2315
2309#ifdef CONFIG_TASK_XACCT 2316#ifdef CONFIG_TASK_XACCT
2310static inline void add_rchar(struct task_struct *tsk, ssize_t amt) 2317static inline void add_rchar(struct task_struct *tsk, ssize_t amt)
2311{ 2318{