Skip to content

Commit dccd323

Browse files
committed
drm/arc: Remove sending of vblank event
The atomic helpers automatically send out fake VBLANK events if no vblanking has been initialized. Remove the sending code from the driver. v4: * separate commit from core vblank changes Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20200129120531.6891-3-tzimmermann@suse.de
1 parent 7beb691 commit dccd323

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

‎drivers/gpu/drm/arc/arcpgu_crtc.c‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <drm/drm_device.h>
1010
#include <drm/drm_fb_cma_helper.h>
1111
#include <drm/drm_gem_cma_helper.h>
12-
#include <drm/drm_vblank.h>
1312
#include <drm/drm_plane_helper.h>
1413
#include <drm/drm_probe_helper.h>
1514
#include <linux/clk.h>
@@ -138,24 +137,9 @@ static void arc_pgu_crtc_atomic_disable(struct drm_crtc *crtc,
138137
~ARCPGU_CTRL_ENABLE_MASK);
139138
}
140139

141-
static void arc_pgu_crtc_atomic_begin(struct drm_crtc *crtc,
142-
struct drm_crtc_state *state)
143-
{
144-
struct drm_pending_vblank_event *event = crtc->state->event;
145-
146-
if (event) {
147-
crtc->state->event = NULL;
148-
149-
spin_lock_irq(&crtc->dev->event_lock);
150-
drm_crtc_send_vblank_event(crtc, event);
151-
spin_unlock_irq(&crtc->dev->event_lock);
152-
}
153-
}
154-
155140
static const struct drm_crtc_helper_funcs arc_pgu_crtc_helper_funcs = {
156141
.mode_valid = arc_pgu_crtc_mode_valid,
157142
.mode_set_nofb = arc_pgu_crtc_mode_set_nofb,
158-
.atomic_begin = arc_pgu_crtc_atomic_begin,
159143
.atomic_enable = arc_pgu_crtc_atomic_enable,
160144
.atomic_disable = arc_pgu_crtc_atomic_disable,
161145
};

0 commit comments

Comments
 (0)