Lines Matching refs:prio
750 int prio = p->static_prio - MAX_RT_PRIO; in set_load_weight() local
768 reweight_task(p, prio); in set_load_weight()
770 load->weight = scale_load(sched_prio_to_weight[prio]); in set_load_weight()
771 load->inv_weight = sched_prio_to_wmult[prio]; in set_load_weight()
1355 int prio; in normal_prio() local
1358 prio = MAX_DL_PRIO-1; in normal_prio()
1360 prio = MAX_RT_PRIO-1 - p->rt_priority; in normal_prio()
1362 prio = __normal_prio(p); in normal_prio()
1363 return prio; in normal_prio()
1381 if (!rt_prio(p->prio)) in effective_prio()
1383 return p->prio; in effective_prio()
1413 } else if (oldprio != p->prio || dl_task(p)) in check_class_changed()
2855 p->prio = current->normal_prio; in sched_fork()
2870 p->prio = p->normal_prio = __normal_prio(p); in sched_fork()
2880 if (dl_prio(p->prio)) in sched_fork()
2882 else if (rt_prio(p->prio)) in sched_fork()
4346 static inline int __rt_effective_prio(struct task_struct *pi_task, int prio) in __rt_effective_prio() argument
4349 prio = min(prio, pi_task->prio); in __rt_effective_prio()
4351 return prio; in __rt_effective_prio()
4354 static inline int rt_effective_prio(struct task_struct *p, int prio) in rt_effective_prio() argument
4358 return __rt_effective_prio(pi_task, prio); in rt_effective_prio()
4374 int prio, oldprio, queued, running, queue_flag = in rt_mutex_setprio() local
4381 prio = __rt_effective_prio(pi_task, p->normal_prio); in rt_mutex_setprio()
4386 if (p->pi_top_task == pi_task && prio == p->prio && !dl_prio(prio)) in rt_mutex_setprio()
4406 if (prio == p->prio && !dl_prio(prio)) in rt_mutex_setprio()
4428 oldprio = p->prio; in rt_mutex_setprio()
4430 if (oldprio == prio) in rt_mutex_setprio()
4450 if (dl_prio(prio)) { in rt_mutex_setprio()
4458 } else if (rt_prio(prio)) { in rt_mutex_setprio()
4461 if (oldprio < prio) in rt_mutex_setprio()
4472 p->prio = prio; in rt_mutex_setprio()
4489 static inline int rt_effective_prio(struct task_struct *p, int prio) in rt_effective_prio() argument
4491 return prio; in rt_effective_prio()
4530 old_prio = p->prio; in set_user_nice()
4531 p->prio = effective_prio(p); in set_user_nice()
4532 delta = p->prio - old_prio; in set_user_nice()
4609 return p->prio - MAX_RT_PRIO; in task_prio()
4723 p->prio = normal_prio(p); in __setscheduler()
4725 p->prio = rt_effective_prio(p, p->prio); in __setscheduler()
4727 if (dl_prio(p->prio)) in __setscheduler()
4729 else if (rt_prio(p->prio)) in __setscheduler()
4954 oldprio = p->prio; in __sched_setscheduler()
4986 if (oldprio < p->prio) in __sched_setscheduler()
7788 int prio, delta; in cpu_weight_nice_read_s64() local
7791 for (prio = 0; prio < ARRAY_SIZE(sched_prio_to_weight); prio++) { in cpu_weight_nice_read_s64()
7792 delta = abs(sched_prio_to_weight[prio] - weight); in cpu_weight_nice_read_s64()
7798 return PRIO_TO_NICE(prio - 1 + MAX_RT_PRIO); in cpu_weight_nice_read_s64()