Release 4.10 include/linux/sched/rt.h
#ifndef _SCHED_RT_H
#define _SCHED_RT_H
#include <linux/sched/prio.h>
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 | 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 | 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 | 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 | clark williams | 16 | 94.12% | 1 | 50.00% |
dario faggioli | 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 | 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 | dario faggioli | 16 | 94.12% | 1 | 50.00% |
clark williams | 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 | 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 /* _SCHED_RT_H */
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
clark williams | clark williams | 164 | 72.25% | 2 | 33.33% |
thomas gleixner | thomas gleixner | 31 | 13.66% | 2 | 33.33% |
dario faggioli | dario faggioli | 29 | 12.78% | 1 | 16.67% |
dongsheng yang | dongsheng yang | 3 | 1.32% | 1 | 16.67% |
| Total | 227 | 100.00% | 6 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.