cregit-Linux how code gets into the kernel

Release 4.17 include/linux/sched/rt.h

/* SPDX-License-Identifier: GPL-2.0 */
#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%


static inline bool task_is_realtime(struct task_struct *tsk) { int policy = tsk->policy; if (policy == SCHED_FIFO || policy == SCHED_RR) return true; if (policy == SCHED_DEADLINE) return true; return false; }

Contributors

PersonTokensPropCommitsCommitProp
Sebastian Andrzej Siewior44100.00%1100.00%
Total44100.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 Williams12354.19%220.00%
Sebastian Andrzej Siewior4419.38%110.00%
Dario Faggioli2310.13%110.00%
Peter Zijlstra156.61%110.00%
Ingo Molnar73.08%110.00%
Thomas Gleixner62.64%110.00%
Xunlei Pang62.64%110.00%
Dongsheng Yang20.88%110.00%
Greg Kroah-Hartman10.44%110.00%
Total227100.00%10100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.