• Home
  • Raw
  • Download

Lines Matching refs:prio

175 	if (rt_prio(p->prio)) /* includes deadline */  in __task_prio()
176 return p->prio; /* [-1, 99] */ in __task_prio()
1292 int prio = p->static_prio - MAX_RT_PRIO; in set_load_weight() local
1309 reweight_task(p, prio); in set_load_weight()
1311 load->weight = scale_load(sched_prio_to_weight[prio]); in set_load_weight()
1312 load->inv_weight = sched_prio_to_wmult[prio]; in set_load_weight()
2162 int prio; in __normal_prio() local
2165 prio = MAX_DL_PRIO - 1; in __normal_prio()
2167 prio = MAX_RT_PRIO - 1 - rt_prio; in __normal_prio()
2169 prio = NICE_TO_PRIO(nice); in __normal_prio()
2171 return prio; in __normal_prio()
2201 if (!rt_prio(p->prio)) in effective_prio()
2203 return p->prio; in effective_prio()
2233 } else if (oldprio != p->prio || dl_task(p)) in check_class_changed()
4760 p->prio = current->normal_prio; in sched_fork()
4776 p->prio = p->normal_prio = p->static_prio; in sched_fork()
4786 if (dl_prio(p->prio)) in sched_fork()
4788 else if (rt_prio(p->prio)) in sched_fork()
7057 static void __setscheduler_prio(struct task_struct *p, int prio) in __setscheduler_prio() argument
7059 if (dl_prio(prio)) in __setscheduler_prio()
7061 else if (rt_prio(prio)) in __setscheduler_prio()
7066 p->prio = prio; in __setscheduler_prio()
7071 static inline int __rt_effective_prio(struct task_struct *pi_task, int prio) in __rt_effective_prio() argument
7074 prio = min(prio, pi_task->prio); in __rt_effective_prio()
7076 return prio; in __rt_effective_prio()
7079 static inline int rt_effective_prio(struct task_struct *p, int prio) in rt_effective_prio() argument
7083 return __rt_effective_prio(pi_task, prio); in rt_effective_prio()
7099 int prio, oldprio, queued, running, queue_flag = in rt_mutex_setprio() local
7108 prio = __rt_effective_prio(pi_task, p->normal_prio); in rt_mutex_setprio()
7114 if (!update && p->pi_top_task == pi_task && prio == p->prio && !dl_prio(prio)) in rt_mutex_setprio()
7134 if (!update && prio == p->prio && !dl_prio(prio)) in rt_mutex_setprio()
7156 oldprio = p->prio; in rt_mutex_setprio()
7158 if (oldprio == prio) in rt_mutex_setprio()
7178 if (dl_prio(prio)) { in rt_mutex_setprio()
7180 (pi_task && dl_prio(pi_task->prio) && in rt_mutex_setprio()
7187 } else if (rt_prio(prio)) { in rt_mutex_setprio()
7190 if (oldprio < prio) in rt_mutex_setprio()
7199 __setscheduler_prio(p, prio); in rt_mutex_setprio()
7218 static inline int rt_effective_prio(struct task_struct *p, int prio) in rt_effective_prio() argument
7220 return prio; in rt_effective_prio()
7264 old_prio = p->prio; in set_user_nice()
7265 p->prio = effective_prio(p); in set_user_nice()
7358 return p->prio - MAX_RT_PRIO; in task_prio()
7816 oldprio = p->prio; in __sched_setscheduler()
7853 if (oldprio < p->prio) in __sched_setscheduler()
11298 int prio, delta; in cpu_weight_nice_read_s64() local
11301 for (prio = 0; prio < ARRAY_SIZE(sched_prio_to_weight); prio++) { in cpu_weight_nice_read_s64()
11302 delta = abs(sched_prio_to_weight[prio] - weight); in cpu_weight_nice_read_s64()
11308 return PRIO_TO_NICE(prio - 1 + MAX_RT_PRIO); in cpu_weight_nice_read_s64()