From patchwork Mon Jun 6 14:41:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9158423 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8E9B460759 for ; Mon, 6 Jun 2016 14:42:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8054620265 for ; Mon, 6 Jun 2016 14:42:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 754F027B13; Mon, 6 Jun 2016 14:42:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F27426E5D for ; Mon, 6 Jun 2016 14:42:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 575076E596; Mon, 6 Jun 2016 14:42:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yw0-f193.google.com (mail-yw0-f193.google.com [209.85.161.193]) by gabe.freedesktop.org (Postfix) with ESMTPS id F223D6E58A for ; Mon, 6 Jun 2016 14:42:10 +0000 (UTC) Received: by mail-yw0-f193.google.com with SMTP id n16so19317847ywd.2 for ; Mon, 06 Jun 2016 07:42:10 -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=a/CzJVU015s9A13rDB0ndYjMuhzPFAFTqhc6Ei5KdCU=; b=RQpsEFIUuUjDLmAqR0AaURX4/J7RaWkLNIwnnXUhl8LiMcirbfKqe2VG/UPTawZd85 b77juBR9S9ykEfoYhwl577JE2QglVNYj6856B2bo1YhmJce7o6Ed6CDrTRCAGXP8bl+C eGrBr8MdaKJwFHk5v+9TrLlmGJOuPlsvTQ2TpAAnwpGh27OLKQoSbyevMZ+IHDY32m8u fkg/lNiBNj5HMi1DOIycaXMHFYR2jpgXK8cojGj4pdOhkNAJV4g6X+io8qgDBDfccwy4 4zJBIRJnzvCrec/+Bl46zTNUfiybcl4p+/R5V53gc8wonz2f6w0blady4Lttte2ALsHq Gx0A== X-Gm-Message-State: ALyK8tL3JYVRixsXTCItVip5kpijyIv4+6O7Cz8dQSuZIgBvw7jKhJ8irzIO7TlA/T5mQA== X-Received: by 10.129.33.69 with SMTP id h66mr11494582ywh.55.1465224129423; Mon, 06 Jun 2016 07:42:09 -0700 (PDT) Received: from jade.localdomain ([201.82.24.203]) by smtp.gmail.com with ESMTPSA id f124sm11736407ywb.13.2016.06.06.07.42.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jun 2016 07:42:08 -0700 (PDT) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Subject: [PATCH RESEND 06/14] drm/virtio: use drm_crtc_send_vblank_event() Date: Mon, 6 Jun 2016 11:41:37 -0300 Message-Id: <1465224105-21485-6-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1465224105-21485-1-git-send-email-gustavo@padovan.org> References: <1465224105-21485-1-git-send-email-gustavo@padovan.org> Cc: open list , Gustavo Padovan , Gerd Hoffmann , "open list:VIRTIO GPU DRIVER" 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-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/virtio/virtgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/drivers/gpu/drm/virtio/virtgpu_display.c index d4305da..ba5e11b 100644 --- a/drivers/gpu/drm/virtio/virtgpu_display.c +++ b/drivers/gpu/drm/virtio/virtgpu_display.c @@ -156,7 +156,7 @@ static int virtio_gpu_page_flip(struct drm_crtc *crtc, if (event) { spin_lock_irqsave(&crtc->dev->event_lock, irqflags); - drm_send_vblank_event(crtc->dev, -1, event); + drm_crtc_send_vblank_event(crtc, event); spin_unlock_irqrestore(&crtc->dev->event_lock, irqflags); }