Release 4.11 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
extern int rt_mutex_getprio(struct task_struct *p);
extern void rt_mutex_setprio(struct task_struct *p, int prio);
extern int rt_mutex_get_effective_prio(struct task_struct *task, int newprio);
extern struct task_struct *rt_mutex_get_top_task(struct task_struct *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 int rt_mutex_getprio(struct task_struct *p)
{
return p->normal_prio;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Clark Williams | 16 | 94.12% | 1 | 50.00% |
Dario Faggioli | 1 | 5.88% | 1 | 50.00% |
Total | 17 | 100.00% | 2 | 100.00% |
static inline int rt_mutex_get_effective_prio(struct task_struct *task,
int newprio)
{
return newprio;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Thomas Gleixner | 18 | 100.00% | 2 | 100.00% |
Total | 18 | 100.00% | 2 | 100.00% |
static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *task)
{
return NULL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Dario Faggioli | 16 | 94.12% | 1 | 50.00% |
Clark Williams | 1 | 5.88% | 1 | 50.00% |
Total | 17 | 100.00% | 2 | 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 | 161 | 70.00% | 2 | 28.57% |
Thomas Gleixner | 31 | 13.48% | 2 | 28.57% |
Dario Faggioli | 29 | 12.61% | 1 | 14.29% |
Ingo Molnar | 7 | 3.04% | 1 | 14.29% |
Dongsheng Yang | 2 | 0.87% | 1 | 14.29% |
Total | 230 | 100.00% | 7 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.