File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -429,6 +429,7 @@ static void mtk_crtc_ddp_hw_fini(struct mtk_crtc *mtk_crtc)
429
429
{
430
430
struct drm_device * drm = mtk_crtc -> base .dev ;
431
431
struct drm_crtc * crtc = & mtk_crtc -> base ;
432
+ unsigned long flags ;
432
433
int i ;
433
434
434
435
for (i = 0 ; i < mtk_crtc -> ddp_comp_nr ; i ++ ) {
@@ -460,10 +461,10 @@ static void mtk_crtc_ddp_hw_fini(struct mtk_crtc *mtk_crtc)
460
461
pm_runtime_put (drm -> dev );
461
462
462
463
if (crtc -> state -> event && !crtc -> state -> active ) {
463
- spin_lock_irq (& crtc -> dev -> event_lock );
464
+ spin_lock_irqsave (& crtc -> dev -> event_lock , flags );
464
465
drm_crtc_send_vblank_event (crtc , crtc -> state -> event );
465
466
crtc -> state -> event = NULL ;
466
- spin_unlock_irq (& crtc -> dev -> event_lock );
467
+ spin_unlock_irqrestore (& crtc -> dev -> event_lock , flags );
467
468
}
468
469
}
469
470
You can’t perform that action at this time.
0 commit comments