dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Deucher <alexdeucher@gmail.com>
To: airlied@gmail.com, dri-devel@lists.freedesktop.org
Cc: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Subject: [PATCH 3/3] kms/radeon: Use high precision timestamps for pageflip completion events.
Date: Sun, 21 Nov 2010 10:59:03 -0500	[thread overview]
Message-ID: <1290355143-15948-3-git-send-email-alexdeucher@gmail.com> (raw)
In-Reply-To: <1290355143-15948-1-git-send-email-alexdeucher@gmail.com>

From: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>

Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
---
 drivers/gpu/drm/radeon/radeon_display.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index f6493f4..15f24f2 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -259,8 +259,7 @@ void radeon_crtc_handle_flip(struct radeon_device *rdev, int crtc_id)
 	/* wakeup userspace */
 	if (work->event) {
 		e = work->event;
-		do_gettimeofday(&now);
-		e->event.sequence = drm_vblank_count(rdev->ddev, radeon_crtc->crtc_id);
+		e->event.sequence = drm_vblank_count_and_time(rdev->ddev, crtc_id, &now);
 		e->event.tv_sec = now.tv_sec;
 		e->event.tv_usec = now.tv_usec;
 		list_add_tail(&e->base.link, &e->base.file_priv->event_list);
-- 
1.7.1.1

  parent reply	other threads:[~2010-11-21 15:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-21 15:59 [PATCH 1/3] drm/radeon/kms: add pageflip ioctl support (v3) Alex Deucher
2010-11-21 15:59 ` [PATCH 2/3] kms/radeon: Reorder vblank and pageflip interrupt handling Alex Deucher
2010-11-21 15:59 ` Alex Deucher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-11-20 18:50 [PATCH 1/3] drm/radeon/kms: add pageflip ioctl support (v2) Alex Deucher
2010-11-20 18:50 ` [PATCH 3/3] kms/radeon: Use high precision timestamps for pageflip completion events Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1290355143-15948-3-git-send-email-alexdeucher@gmail.com \
    --to=alexdeucher@gmail.com \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=mario.kleiner@tuebingen.mpg.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox