mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-01 15:15:19 -04:00
drm/i915: Strip out internal priorities
Since we are not using any internal priority levels, and in the next few patches will introduce a new index for which the optimisation is not so lear cut, discard the small table within the priolist. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Andi Shyti <andi.shyti@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210120121439.17600-1-chris@chris-wilson.co.uk Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
committed by
Daniel Vetter
parent
06debd6e1b
commit
2867ff6ceb
@@ -15,17 +15,11 @@
|
||||
|
||||
struct drm_printer;
|
||||
|
||||
#define priolist_for_each_request(it, plist, idx) \
|
||||
for (idx = 0; idx < ARRAY_SIZE((plist)->requests); idx++) \
|
||||
list_for_each_entry(it, &(plist)->requests[idx], sched.link)
|
||||
#define priolist_for_each_request(it, plist) \
|
||||
list_for_each_entry(it, &(plist)->requests, sched.link)
|
||||
|
||||
#define priolist_for_each_request_consume(it, n, plist, idx) \
|
||||
for (; \
|
||||
(plist)->used ? (idx = __ffs((plist)->used)), 1 : 0; \
|
||||
(plist)->used &= ~BIT(idx)) \
|
||||
list_for_each_entry_safe(it, n, \
|
||||
&(plist)->requests[idx], \
|
||||
sched.link)
|
||||
#define priolist_for_each_request_consume(it, n, plist) \
|
||||
list_for_each_entry_safe(it, n, &(plist)->requests, sched.link)
|
||||
|
||||
void i915_sched_node_init(struct i915_sched_node *node);
|
||||
void i915_sched_node_reinit(struct i915_sched_node *node);
|
||||
@@ -44,8 +38,6 @@ void i915_sched_node_fini(struct i915_sched_node *node);
|
||||
void i915_schedule(struct i915_request *request,
|
||||
const struct i915_sched_attr *attr);
|
||||
|
||||
void i915_schedule_bump_priority(struct i915_request *rq, unsigned int bump);
|
||||
|
||||
struct list_head *
|
||||
i915_sched_lookup_priolist(struct intel_engine_cs *engine, int prio);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user