[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220429040355.2644322-1-lizhenneng@kylinos.cn>
Date: Fri, 29 Apr 2022 12:03:55 +0800
From: Zhenneng Li <lizhenneng@...inos.cn>
To: David Airlie <airlied@...ux.ie>, Daniel Vetter <daniel@...ll.ch>
Cc: Jani Nikula <jani.nikula@...ux.intel.com>,
Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
Tvrtko Ursulin <tvrtko.ursulin@...ux.intel.com>,
intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org, Zhenneng Li <lizhenneng@...inos.cn>
Subject: [PATCH] drm/i915: remove unnecessary spin_lock_irq
This code will not be called by interrupt handler,
so change it to spin_lock.
Signed-off-by: Zhenneng Li <lizhenneng@...inos.cn>
---
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
Powered by blists - more mailing lists