/* The higher a thread's priority, the bigger timeslices it gets during one round of execution. But even the lowest priority thread gets MIN_TIMESLICE worth of execution time.  */
void spu_set_timeslice(struct spu_context *ctx)
/* The higher a thread's priority, the bigger timeslices it gets during one round of execution. But even the lowest priority thread gets MIN_TIMESLICE worth of execution time.  */
void spu_set_timeslice(struct spu_context *ctx)
{
	if (ctx->prio < NORMAL_PRIO)
		ctx->time_slice = SCALE_PRIO(DEF_SPU_TIMESLICE * 4, ctx->prio);
	else
		ctx->time_slice = SCALE_PRIO(DEF_SPU_TIMESLICE, ctx->prio);
}