cregit-Linux how code gets into the kernel

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

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 /* * 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

PersonTokensPropCommitsCommitProp
Peter Zijlstra1157.89%133.33%
Thomas Gleixner526.32%133.33%
Clark Williams315.79%133.33%
Total19100.00%3100.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

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

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

Contributors

PersonTokensPropCommitsCommitProp
Dario Faggioli17100.00%1100.00%
Total17100.00%1100.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 Williams12367.58%225.00%
Dario Faggioli2312.64%112.50%
Peter Zijlstra158.24%112.50%
Ingo Molnar73.85%112.50%
Thomas Gleixner63.30%112.50%
Xunlei Pang63.30%112.50%
Dongsheng Yang21.10%112.50%
Total182100.00%8100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.