From patchwork Tue Nov 22 22:20:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9442275 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 70D7860235 for ; Tue, 22 Nov 2016 22:21:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63EB61FF0B for ; Tue, 22 Nov 2016 22:21:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58D0820747; Tue, 22 Nov 2016 22:21:00 +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.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 129DD1FF0B for ; Tue, 22 Nov 2016 22:21:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 25A166E314; Tue, 22 Nov 2016 22:20:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2581F6E050 for ; Tue, 22 Nov 2016 22:20:46 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id a20so7158319wme.2 for ; Tue, 22 Nov 2016 14:20:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=i3e2v3+8B6PxRfE1zTob79H7kQZK9FPdQh3x6kpPjXk=; b=mLb+BYYApy4q1+udRifwxXtKImwh3Vb9RxZdxoTu+Id+ea4UiL8DrwqsDAjfyha4TS 0fCIak8iLTze07peKkZAaeAe0G3DSmf1fnT/5WqAI4opHIkaDDR/naiewKNAMUvgPI2n xt/bjlUkDGn+4MqXTU7gDgwRYaMB+zjXNa7j/JhIZrCiPd77luWWFTSpjGdQIL/1ol9A CtRiUBTEVr2W09ElJIED4o/poBNLXp5EwL/MH25OE6Rx80fEI/jbjNexUHQKTcXv58nF VHLRe/OjeoU5DYSmZDFqcayjOduX7IKdtMqpxBjP353G0ThDx33ZDqw4VFTDHk1yYtbn Ig7g== 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=i3e2v3+8B6PxRfE1zTob79H7kQZK9FPdQh3x6kpPjXk=; b=lccf2YGtgj/H07FjwbySMZhmQPgO/qvm45RiyeeqMKcOyfET5ekBtFuOgnuj1vQoSQ k9v4hZrIH2+Ratoqu36bTOa4UoazvOkg6G3NMuC43LwNe/8yzZod/eDw2Hbiv9dCzN7+ G45OWIP5mkGG+pwC8/4aj6FgFsUc0cO/5yKxVWfMVCGdSkQJ0VWAy7D61VdwJrUXPvA4 8iFIJa6nlIKalVXqeo4wA7p5sEZKulBzPQdn0aE1ETOWMxUEYe9ZQzc1iF8DVbQDxNRv HqZzLz2NN1k99ABsfLgy06yIrcbdkHLSdkLMlL7o5RSkV1DeQkulvHI4GkRDP4+cLTaK GFiw== X-Gm-Message-State: AKaTC00yOxcaF4QrW/S9eyMlyPJHtdHayHzxAKuY5VoacXKFBq7kkm+uOjIdyx81WuZK7g== X-Received: by 10.28.232.85 with SMTP id f82mr4201308wmh.127.1479853244437; Tue, 22 Nov 2016 14:20:44 -0800 (PST) Received: from c720p.fritz.box (188-22-25-65.adsl.highway.telekom.at. [188.22.25.65]) by smtp.gmail.com with ESMTPSA id i2sm33023073wjx.44.2016.11.22.14.20.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Nov 2016 14:20:43 -0800 (PST) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm v2 3/3] etnaviv: s/get_abs_timeout_ns/get_abs_timeout Date: Tue, 22 Nov 2016 23:20:20 +0100 Message-Id: <1479853220-9479-4-git-send-email-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479853220-9479-1-git-send-email-christian.gmeiner@gmail.com> References: <1479853220-9479-1-git-send-email-christian.gmeiner@gmail.com> 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 Signed-off-by: Christian Gmeiner --- etnaviv/etnaviv_pipe.c | 2 +- etnaviv/etnaviv_priv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etnaviv/etnaviv_pipe.c b/etnaviv/etnaviv_pipe.c index 6951362..94c5d37 100644 --- a/etnaviv/etnaviv_pipe.c +++ b/etnaviv/etnaviv_pipe.c @@ -48,7 +48,7 @@ int etna_pipe_wait_ns(struct etna_pipe *pipe, uint32_t timestamp, uint64_t ns) if (ns == 0) req.flags |= ETNA_WAIT_NONBLOCK; - get_abs_timeout_ns(&req.timeout, ns); + get_abs_timeout(&req.timeout, ns); ret = drmCommandWrite(dev->fd, DRM_ETNAVIV_WAIT_FENCE, &req, sizeof(req)); if (ret) { diff --git a/etnaviv/etnaviv_priv.h b/etnaviv/etnaviv_priv.h index 667bf23..feaa5ad 100644 --- a/etnaviv/etnaviv_priv.h +++ b/etnaviv/etnaviv_priv.h @@ -189,7 +189,7 @@ struct etna_cmd_stream_priv { #define VOID2U64(x) ((uint64_t)(unsigned long)(x)) -static inline void get_abs_timeout_ns(struct drm_etnaviv_timespec *tv, uint64_t ns) +static inline void get_abs_timeout(struct drm_etnaviv_timespec *tv, uint64_t ns) { struct timespec t; uint32_t s = ns / 1000000000;