cregit-Linux how code gets into the kernel

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

PersonTokensPropCommitsCommitProp
Clark Williams25100.00%1100.00%
Total25100.00%1100.00%


static inline int rt_task(struct task_struct *p) { return rt_prio(p->prio); }

Contributors

PersonTokensPropCommitsCommitProp
Clark Williams20100.00%1100.00%
Total20100.00%1100.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

PersonTokensPropCommitsCommitProp
Clark Williams19100.00%1100.00%
Total19100.00%1100.00%

#else
static inline int rt_mutex_getprio(struct task_struct *p) { return p->normal_prio; }

Contributors

PersonTokensPropCommitsCommitProp
Clark Williams1694.12%150.00%
Dario Faggioli15.88%150.00%
Total17100.00%2100.00%


static inline int rt_mutex_get_effective_prio(struct task_struct *task, int newprio) { return newprio; }

Contributors

PersonTokensPropCommitsCommitProp
Thomas Gleixner18100.00%2100.00%
Total18100.00%2100.00%


static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *task) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Dario Faggioli1694.12%150.00%
Clark Williams15.88%150.00%
Total17100.00%2100.00%

# define rt_mutex_adjust_pi(p) do { } while (0)
static inline bool tsk_is_pi_blocked(struct task_struct *tsk) { return false; }

Contributors

PersonTokensPropCommitsCommitProp
Clark Williams15100.00%1100.00%
Total15100.00%1100.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

PersonTokensPropCommitsCommitProp
Clark Williams16170.00%228.57%
Thomas Gleixner3113.48%228.57%
Dario Faggioli2912.61%114.29%
Ingo Molnar73.04%114.29%
Dongsheng Yang20.87%114.29%
Total230100.00%7100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.