Commit 362a8dba authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Drop irqsave/restore for flip_done_handler()

Since flip_done_handler() is always called from the irq handler
we can skip the irqsave/restore dance.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230928152450.30109-2-ville.syrjala@linux.intel.comReviewed-by: default avatarArun R Murthy <arun.r.murthy@intel.com>
parent 6128beca
...@@ -340,17 +340,15 @@ static void flip_done_handler(struct drm_i915_private *i915, ...@@ -340,17 +340,15 @@ static void flip_done_handler(struct drm_i915_private *i915,
enum pipe pipe) enum pipe pipe)
{ {
struct intel_crtc *crtc = intel_crtc_for_pipe(i915, pipe); struct intel_crtc *crtc = intel_crtc_for_pipe(i915, pipe);
struct drm_device *dev = &i915->drm;
unsigned long irqflags;
spin_lock_irqsave(&dev->event_lock, irqflags); spin_lock(&i915->drm.event_lock);
if (crtc->flip_done_event) { if (crtc->flip_done_event) {
drm_crtc_send_vblank_event(&crtc->base, crtc->flip_done_event); drm_crtc_send_vblank_event(&crtc->base, crtc->flip_done_event);
crtc->flip_done_event = NULL; crtc->flip_done_event = NULL;
} }
spin_unlock_irqrestore(&dev->event_lock, irqflags); spin_unlock(&i915->drm.event_lock);
} }
static void hsw_pipe_crc_irq_handler(struct drm_i915_private *dev_priv, static void hsw_pipe_crc_irq_handler(struct drm_i915_private *dev_priv,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment