Hi Chris,

> -static void __bump_priority(struct i915_sched_node *node, unsigned int bump)
> -{
> -     struct i915_sched_attr attr = node->attr;
> -
> -     if (attr.priority & bump)
> -             return;
> -
> -     attr.priority |= bump;
> -     __i915_schedule(node, &attr);
> -}
> -
> -void i915_schedule_bump_priority(struct i915_request *rq, unsigned int bump)
> -{
> -     unsigned long flags;
> -
> -     GEM_BUG_ON(bump & ~I915_PRIORITY_MASK);
> -     if (READ_ONCE(rq->sched.attr.priority) & bump)
> -             return;
> -
> -     spin_lock_irqsave(&schedule_lock, flags);
> -     __bump_priority(&rq->sched, bump);
> -     spin_unlock_irqrestore(&schedule_lock, flags);
> -}

was, indeed, this function used anywhere else?

Reviewed-by: Andi Shyti <[email protected]>

Andi
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to