From patchwork Thu Apr 14 17:48:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 8840391 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E15C7C0554 for ; Thu, 14 Apr 2016 17:48:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0092C20373 for ; Thu, 14 Apr 2016 17:48:50 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C2AF920357 for ; Thu, 14 Apr 2016 17:48:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 17BCA6EAB7; Thu, 14 Apr 2016 17:48:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-f169.google.com (mail-pf0-f169.google.com [209.85.192.169]) by gabe.freedesktop.org (Postfix) with ESMTPS id 65D066EABA; Thu, 14 Apr 2016 17:48:44 +0000 (UTC) Received: by mail-pf0-f169.google.com with SMTP id n1so48103394pfn.2; Thu, 14 Apr 2016 10:48:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nYxmIHSSVBicigl0bSQgZcDpe37UP7Jw6GAoQHSpBNE=; b=g2yhhhexRou8/IyK9ei0Wj0cUnr0aYSqqv/+QeZ6sMTrlp5yUwe7DnTprZAsppnAgu ghsgsC7W+dXBs/MSKG2izNhNlFU94jqyNQ8rxZWH5C/umosRc+4oz73MGL7P0el2uhhw +TzTLiLEpNtNTW9DKDQ0yJw1iG0KPHCtBGET0DzOeAa/PUpFOFeH1Re5wajHlhH12UDe NPLSMqVOfcLXzJhAOJkQejXKftAnUwGDAFcKJTkYkDOWxntOxK3W34zdgKw19lLPyPE0 geDyv1rEhQOAbAbuah+Mk2qBT5s0ll5MIRpkfTJpjPi7jBi5e07DDIE1ntZGncO0WU1d ghlw== X-Gm-Message-State: AOPr4FWbbg2L1OxhDswYG5llFVgTf/QeftbMpuSYFpWKIiaq12ct6jGsiXaLA02ahcK6/Q== X-Received: by 10.98.65.14 with SMTP id o14mr22710126pfa.151.1460656123912; Thu, 14 Apr 2016 10:48:43 -0700 (PDT) Received: from jade.localdomain (c-73-241-147-137.hsd1.ca.comcast.net. [73.241.147.137]) by smtp.gmail.com with ESMTPSA id y27sm59344437pfi.11.2016.04.14.10.48.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Apr 2016 10:48:43 -0700 (PDT) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Subject: [PATCH 04/14] drm/i915: use drm_crtc_send_vblank_event() Date: Thu, 14 Apr 2016 10:48:15 -0700 Message-Id: <1460656118-16766-4-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1460656118-16766-1-git-send-email-gustavo@padovan.org> References: <1460656118-16766-1-git-send-email-gustavo@padovan.org> Cc: Daniel Vetter , "open list:INTEL DRM DRIVERS excluding Poulsbo, Moorestow..., linux-kernel@vger.kernel.org open list" , Gustavo Padovan X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan Replace the legacy drm_send_vblank_event() with the new helper function. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/i915/intel_display.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 29aa64b..181ee3c 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -3802,9 +3802,7 @@ static void page_flip_completed(struct intel_crtc *intel_crtc) intel_crtc->unpin_work = NULL; if (work->event) - drm_send_vblank_event(intel_crtc->base.dev, - intel_crtc->pipe, - work->event); + drm_crtc_send_vblank_event(&intel_crtc->base, work->event); drm_crtc_vblank_put(&intel_crtc->base); @@ -11699,7 +11697,7 @@ retry: if (ret == 0 && event) { spin_lock_irq(&dev->event_lock); - drm_send_vblank_event(dev, pipe, event); + drm_crtc_send_vblank_event(crtc, event); spin_unlock_irq(&dev->event_lock); } }