summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_scheduler.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/i915_scheduler.c')
-rw-r--r--drivers/gpu/drm/i915/i915_scheduler.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_scheduler.c b/drivers/gpu/drm/i915/i915_scheduler.c
index 5a463852adc0..723560d65361 100644
--- a/drivers/gpu/drm/i915/i915_scheduler.c
+++ b/drivers/gpu/drm/i915/i915_scheduler.c
@@ -1069,7 +1069,8 @@ int i915_scheduler_queue_execbuffer(struct i915_scheduler_queue_entry *qe)
want_preempt = node->priority >= scheduler->priority_level_preempt;
- if (!i915.enable_preemption)
+ /* Pre-emption is disabled if the level control is set to 0 */
+ if (i915.preemption_level == 0)
want_preempt = false;
/* Pre-emption is not yet implemented in non-execlist mode */