Lines Matching refs:prio
85 #define SCALE_PRIO(x, prio) \ argument
86 max(x * (MAX_PRIO - prio) / (MAX_USER_PRIO / 2), MIN_SPU_TIMESLICE)
98 if (ctx->prio < NORMAL_PRIO) in spu_set_timeslice()
99 ctx->time_slice = SCALE_PRIO(DEF_SPU_TIMESLICE * 4, ctx->prio); in spu_set_timeslice()
101 ctx->time_slice = SCALE_PRIO(DEF_SPU_TIMESLICE, ctx->prio); in spu_set_timeslice()
128 if (rt_prio(current->prio)) in __spu_update_sched_info()
129 ctx->prio = current->prio; in __spu_update_sched_info()
131 ctx->prio = current->static_prio; in __spu_update_sched_info()
508 list_add_tail(&ctx->rq, &spu_prio->runq[ctx->prio]); in __spu_add_to_rq()
509 set_bit(ctx->prio, spu_prio->bitmap); in __spu_add_to_rq()
524 int prio = ctx->prio; in __spu_del_from_rq() local
531 if (list_empty(&spu_prio->runq[prio])) in __spu_del_from_rq()
532 clear_bit(prio, spu_prio->bitmap); in __spu_del_from_rq()
654 if (tmp && tmp->prio > ctx->prio && in find_victim()
656 (!victim || tmp->prio > victim->prio)) { in find_victim()
682 if (!spu || victim->prio <= ctx->prio) { in find_victim()
807 if (!spu && rt_prio(ctx->prio)) in spu_activate()
836 static struct spu_context *grab_runnable_context(int prio, int node) in grab_runnable_context() argument
842 best = find_first_bit(spu_prio->bitmap, prio); in grab_runnable_context()
843 while (best < prio) { in grab_runnable_context()
940 new = grab_runnable_context(ctx->prio + 1, spu->node); in spusched_tick()