a30b172df6e1a760905f83c2136ac35f4611320f
4 #include <linux/sched/prio.h>
6 static inline int rt_prio(int prio
)
8 if (unlikely(prio
< MAX_RT_PRIO
))
13 static inline int rt_task(struct task_struct
*p
)
15 return rt_prio(p
->prio
);
18 #ifdef CONFIG_RT_MUTEXES
19 extern int rt_mutex_getprio(struct task_struct
*p
);
20 extern void rt_mutex_setprio(struct task_struct
*p
, int prio
);
21 extern int rt_mutex_get_effective_prio(struct task_struct
*task
, int newprio
);
22 extern struct task_struct
*rt_mutex_get_top_task(struct task_struct
*task
);
23 extern void rt_mutex_adjust_pi(struct task_struct
*p
);
24 static inline bool tsk_is_pi_blocked(struct task_struct
*tsk
)
26 return tsk
->pi_blocked_on
!= NULL
;
29 static inline int rt_mutex_getprio(struct task_struct
*p
)
31 return p
->normal_prio
;
34 static inline int rt_mutex_get_effective_prio(struct task_struct
*task
,
40 static inline struct task_struct
*rt_mutex_get_top_task(struct task_struct
*task
)
44 # define rt_mutex_adjust_pi(p) do { } while (0)
45 static inline bool tsk_is_pi_blocked(struct task_struct
*tsk
)
51 extern void normalize_rt_tasks(void);
55 * default timeslice is 100 msecs (used only for SCHED_RR tasks).
56 * Timeslices get refilled after they expire.
58 #define RR_TIMESLICE (100 * HZ / 1000)
60 #endif /* _SCHED_RT_H */
This page took 0.032306 seconds and 4 git commands to generate.