Release 4.12 include/linux/sched/rt.h
#ifndef _LINUX_SCHED_RT_H
#define _LINUX_SCHED_RT_H
#include <linux/sched.h>
struct task_struct;
static inline int rt_prio(int prio)
{
if (unlikely(prio < MAX_RT_PRIO))
return 1;
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Clark Williams | 25 | 100.00% | 1 | 100.00% |
Total | 25 | 100.00% | 1 | 100.00% |
static inline int rt_task(struct task_struct *p)
{
return rt_prio(p->prio);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Clark Williams | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
#ifdef CONFIG_RT_MUTEXES
/*
* Must hold either p->pi_lock or task_rq(p)->lock.
*/
static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *p)
{
return p->pi_top_task;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Zijlstra | 11 | 57.89% | 1 | 33.33% |
Thomas Gleixner | 5 | 26.32% | 1 | 33.33% |
Clark Williams | 3 | 15.79% | 1 | 33.33% |
Total | 19 | 100.00% | 3 | 100.00% |
extern void rt_mutex_setprio(struct task_struct *p, struct task_struct *pi_task);
extern void rt_mutex_adjust_pi(struct task_struct *p);
static inline bool tsk_is_pi_blocked(struct task_struct *tsk)
{
return tsk->pi_blocked_on != NULL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Clark Williams | 19 | 100.00% | 1 | 100.00% |
Total | 19 | 100.00% | 1 | 100.00% |
#else
static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *task)
{
return NULL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Dario Faggioli | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
# define rt_mutex_adjust_pi(p) do { } while (0)
static inline bool tsk_is_pi_blocked(struct task_struct *tsk)
{
return false;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Clark Williams | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
#endif
extern void normalize_rt_tasks(void);
/*
* default timeslice is 100 msecs (used only for SCHED_RR tasks).
* Timeslices get refilled after they expire.
*/
#define RR_TIMESLICE (100 * HZ / 1000)
#endif /* _LINUX_SCHED_RT_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Clark Williams | 123 | 67.58% | 2 | 25.00% |
Dario Faggioli | 23 | 12.64% | 1 | 12.50% |
Peter Zijlstra | 15 | 8.24% | 1 | 12.50% |
Ingo Molnar | 7 | 3.85% | 1 | 12.50% |
Thomas Gleixner | 6 | 3.30% | 1 | 12.50% |
Xunlei Pang | 6 | 3.30% | 1 | 12.50% |
Dongsheng Yang | 2 | 1.10% | 1 | 12.50% |
Total | 182 | 100.00% | 8 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.