This code will not be called by interrupt handler, so change it to spin_lock. Signed-off-by: Zhenneng Li <lizhenneng@xxxxxxxxxx> --- drivers/gpu/drm/i915/i915_scheduler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_scheduler.c b/drivers/gpu/drm/i915/i915_scheduler.c index 762127dd56c5..6615102a1568 100644 --- a/drivers/gpu/drm/i915/i915_scheduler.c +++ b/drivers/gpu/drm/i915/i915_scheduler.c @@ -288,9 +288,9 @@ static void __i915_schedule(struct i915_sched_node *node, void i915_schedule(struct i915_request *rq, const struct i915_sched_attr *attr) { - spin_lock_irq(&schedule_lock); + spin_lock(&schedule_lock); __i915_schedule(&rq->sched, attr); - spin_unlock_irq(&schedule_lock); + spin_unlock(&schedule_lock); } void i915_sched_node_init(struct i915_sched_node *node) -- 2.25.1