Searched refs:PRIO_TO_NICE (Results 1 – 6 of 6) sorted by relevance
62 sched_set_normal(p, PRIO_TO_NICE(p->static_prio)); in setScheduler()
34 #define PRIO_TO_NICE(prio) ((prio) - DEFAULT_PRIO) macro
1729 return PRIO_TO_NICE((p)->static_prio); in task_nice()
1732 return __normal_prio(p->policy, p->rt_priority, PRIO_TO_NICE(p->static_prio)); in normal_prio()3497 } else if (PRIO_TO_NICE(p->static_prio) < 0) in sched_fork()5743 .sched_nice = PRIO_TO_NICE(p->static_prio), in _sched_setscheduler()8756 return PRIO_TO_NICE(prio - 1 + MAX_RT_PRIO); in cpu_weight_nice_read_s64()
667 return PRIO_TO_NICE(kernel_priority); in to_userspace_prio()