Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376365
b: refs/heads/master
c: 0eca56f
h: refs/heads/master
i:
  376363: 765cdf6
v: v3
  • Loading branch information
Rob Clark authored and Dave Airlie committed May 21, 2013
1 parent 87a205b commit 8a54594
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f7e96d7e28817a66db36e89f25b77bda7dba6da0
refs/heads/master: 0eca56f9467038ee0b798637f03581aaa1186fac
21 changes: 2 additions & 19 deletions trunk/drivers/staging/imx-drm/ipuv3-crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,31 +311,14 @@ static int ipu_crtc_mode_set(struct drm_crtc *crtc,

static void ipu_crtc_handle_pageflip(struct ipu_crtc *ipu_crtc)
{
struct drm_pending_vblank_event *e;
struct timeval now;
unsigned long flags;
struct drm_device *drm = ipu_crtc->base.dev;

spin_lock_irqsave(&drm->event_lock, flags);

e = ipu_crtc->page_flip_event;
if (!e) {
spin_unlock_irqrestore(&drm->event_lock, flags);
return;
}

do_gettimeofday(&now);
e->event.sequence = 0;
e->event.tv_sec = now.tv_sec;
e->event.tv_usec = now.tv_usec;
if (ipu_crtc->page_flip_event)
drm_send_vblank_event(drm, -1, ipu_crtc->page_flip_event);
ipu_crtc->page_flip_event = NULL;

imx_drm_crtc_vblank_put(ipu_crtc->imx_crtc);

list_add_tail(&e->base.link, &e->base.file_priv->event_list);

wake_up_interruptible(&e->base.file_priv->event_wait);

spin_unlock_irqrestore(&drm->event_lock, flags);
}

Expand Down

0 comments on commit 8a54594

Please sign in to comment.