From patchwork Mon Oct 8 19:50:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 1566831 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 006EFDFF71 for ; Mon, 8 Oct 2012 19:53:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E76C3A08A6 for ; Mon, 8 Oct 2012 12:53:09 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oa0-f49.google.com (mail-oa0-f49.google.com [209.85.219.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 16C73A0889 for ; Mon, 8 Oct 2012 12:51:16 -0700 (PDT) Received: by mail-oa0-f49.google.com with SMTP id l10so544651oag.36 for ; Mon, 08 Oct 2012 12:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=NTAWK/5q5K+guGLwOzuU3tpGhpKGrhniwHvHW9BYLzM=; b=RPTBWPp139s1NcN5gboHK0ET5KVlcnXMCqR8ZCkjTjsawrfLj2v7iqt9x1l/YUlHCN ILaUfaseAeTKTrh4AZNIntvMVXSaq3YGHN9jqSPrycek+BxpwVoZxQtoDnoq8wbUVQKF tAR9DG3bt4Vymg252E90Sd0AA25RjpgNpy6nMykL6bIWFVO4/OslWTsAHgPmsiXsiOwc Qd5q6m4U5T3Ju9CwGTbg45jFwIp9Ba6O2blrUynmiV1WLtb6MtQe+cmmnxY7mX3O98Gj 40ZmiKpTgMHAhBCld4NeH2N6UWS6pxS42XFAwzofy2HDOTkG7sPyIXFGhVlF+pMT2p9y FtZg== Received: by 10.60.22.104 with SMTP id c8mr14063095oef.2.1349725876674; Mon, 08 Oct 2012 12:51:16 -0700 (PDT) Received: from localhost (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id nd14sm17996718obb.14.2012.10.08.12.51.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Oct 2012 12:51:16 -0700 (PDT) From: Rob Clark To: dri-devel@lists.freedesktop.org Subject: [PATCH 02/11] drm/i915: use drm_send_vblank_event() helper Date: Mon, 8 Oct 2012 14:50:40 -0500 Message-Id: <1349725849-22433-3-git-send-email-rob.clark@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1349725849-22433-1-git-send-email-rob.clark@linaro.org> References: <1349725849-22433-1-git-send-email-rob.clark@linaro.org> Cc: patches@linaro.org, daniel.vetter@ffwll.ch, laurent.pinchart@ideasonboard.com, gregkh@linuxfoundation.org, Rob Clark , bskeggs@redhat.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org From: Rob Clark Signed-off-by: Rob Clark Reviewed-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_display.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index f5bcf6f..4716c83 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -6158,8 +6158,6 @@ static void do_intel_finish_page_flip(struct drm_device *dev, struct intel_crtc *intel_crtc = to_intel_crtc(crtc); struct intel_unpin_work *work; struct drm_i915_gem_object *obj; - struct drm_pending_vblank_event *e; - struct timeval tvbl; unsigned long flags; /* Ignore early vblank irqs */ @@ -6175,17 +6173,8 @@ static void do_intel_finish_page_flip(struct drm_device *dev, intel_crtc->unpin_work = NULL; - if (work->event) { - e = work->event; - e->event.sequence = drm_vblank_count_and_time(dev, intel_crtc->pipe, &tvbl); - - e->event.tv_sec = tvbl.tv_sec; - e->event.tv_usec = tvbl.tv_usec; - - list_add_tail(&e->base.link, - &e->base.file_priv->event_list); - wake_up_interruptible(&e->base.file_priv->event_wait); - } + if (work->event) + drm_send_vblank_event(dev, intel_crtc->pipe, work->event); drm_vblank_put(dev, intel_crtc->pipe);