Lines Matching refs:prio
86 #define SCALE_PRIO(x, prio) \ argument
87 max(x * (MAX_PRIO - prio) / (MAX_USER_PRIO / 2), MIN_SPU_TIMESLICE)
99 if (ctx->prio < NORMAL_PRIO) in spu_set_timeslice()
100 ctx->time_slice = SCALE_PRIO(DEF_SPU_TIMESLICE * 4, ctx->prio); in spu_set_timeslice()
102 ctx->time_slice = SCALE_PRIO(DEF_SPU_TIMESLICE, ctx->prio); in spu_set_timeslice()
129 if (rt_prio(current->prio)) in __spu_update_sched_info()
130 ctx->prio = current->prio; in __spu_update_sched_info()
132 ctx->prio = current->static_prio; in __spu_update_sched_info()
509 list_add_tail(&ctx->rq, &spu_prio->runq[ctx->prio]); in __spu_add_to_rq()
510 set_bit(ctx->prio, spu_prio->bitmap); in __spu_add_to_rq()
525 int prio = ctx->prio; in __spu_del_from_rq() local
532 if (list_empty(&spu_prio->runq[prio])) in __spu_del_from_rq()
533 clear_bit(prio, spu_prio->bitmap); in __spu_del_from_rq()
655 if (tmp && tmp->prio > ctx->prio && in find_victim()
657 (!victim || tmp->prio > victim->prio)) { in find_victim()
683 if (!spu || victim->prio <= ctx->prio) { in find_victim()
808 if (!spu && rt_prio(ctx->prio)) in spu_activate()
837 static struct spu_context *grab_runnable_context(int prio, int node) in grab_runnable_context() argument
843 best = find_first_bit(spu_prio->bitmap, prio); in grab_runnable_context()
844 while (best < prio) { in grab_runnable_context()
941 new = grab_runnable_context(ctx->prio + 1, spu->node); in spusched_tick()