2.5 RT调度器
/* file: kernel/sched/sched.h */
struct rt_prio_array {
DECLARE_BITMAP(bitmap,
MAX_RT_PRIO + 1); /* include 1 bit for delimiter */
struct list_head queue[MAX_RT_PRIO]; /* MAX_RT_PRIO的值为100 */
};/* file: kernel/sched/sched.h */
struct rt_rq {
struct rt_prio_array active;
unsigned int rt_nr_running;
unsigned int rr_nr_running;
int rt_queued;
int rt_throttled;
u64 rt_time;
u64 rt_runtime;
#ifdef CONFIG_RT_GROUP_SCHED
unsigned long rt_nr_boosted;
struct rq *rq;
struct task_group *tg;
#endif
};Last updated