From patchwork Wed Nov 23 07:26:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9442673 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 C411860778 for ; Wed, 23 Nov 2016 07:26:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B66031FE95 for ; Wed, 23 Nov 2016 07:26:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB7BC203C0; Wed, 23 Nov 2016 07:26:54 +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 808C51FE95 for ; Wed, 23 Nov 2016 07:26:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8951E6E6CD; Wed, 23 Nov 2016 07:26:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x242.google.com (mail-wj0-x242.google.com [IPv6:2a00:1450:400c:c01::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id DF89E89F43 for ; Wed, 23 Nov 2016 07:26:32 +0000 (UTC) Received: by mail-wj0-x242.google.com with SMTP id xy5so369929wjc.1 for ; Tue, 22 Nov 2016 23:26:32 -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=wH9edD/FAWnXvbIuNqaNtPoiWkkkQ0833LRGa5t1ujM=; b=zmQnwJvW3WrDZZwYwMGBgYSeMkx9UqHR6GgR/mE68TQfspGzVbPkqItdO8hm7iptdh PHE2cbha7dL6+4s13AgK4w+ZliFNhN7uvY44uy8IEageu3DwPN48HijKFKdAK5rRJ4rc 3bN+bmtn5WlROzs9b5f0eq3OBOmUicEYKOJoN6/HZeaA4VdxY5K3r1KsDUz2oA3Ud6o6 LqSwREiJOqfnTZ6tkNIizq1Dfo+/6zblVN1FGCi4SjFY02BLDLuQ7U/5NmByf+yE3NFK WRRMRkA418s4pQd1ubQcCQi4XvS+tlcQfRvQ/+qz+bJrwkISyRue3JKYYtuzPiCEBDlw t7oQ== 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=wH9edD/FAWnXvbIuNqaNtPoiWkkkQ0833LRGa5t1ujM=; b=dzW2LALCf3jjV9DW8oaTKI3jpzBIan8n45bke1q7XStrVYc4yn43+JL4h7uofeI4F6 zS+kTYG0CnGoGX0Ndci6X2VFI6dyGLPtAurWGZDIwXQw3qN1BEGYv1AzN+cWV1PYyAPG jgE4SC1lgubfZfnk40uqGRpAzfKyL6XDr23mxLQ6t1S+XVjzOzqJI0ROdK4DkdgzcADj k9CksokozdzAeYAvA6slNQmw52O1dr5LhU3KpKqAIRmE6/xgU5mqo84MWPaM/VZw1Bkd z4CaVlbyIaqWFxqeJqwpnd+3J2Pr2HJQoHn69up2Dc9hRw7OU31NOsAVKRxfL+hP9DSk fSPA== X-Gm-Message-State: AKaTC01nlDSwbEdVH0S5K10RZ8fapJ2rD+gaMJfCNUVnuswJ8dBJLxEsRatn1wOC75R+6Q== X-Received: by 10.194.47.138 with SMTP id d10mr2038732wjn.83.1479885991388; Tue, 22 Nov 2016 23:26:31 -0800 (PST) Received: from c720p.fritz.box (188-22-16-174.adsl.highway.telekom.at. [188.22.16.174]) by smtp.gmail.com with ESMTPSA id f134sm1162574wmf.19.2016.11.22.23.26.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Nov 2016 23:26:30 -0800 (PST) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm v3 4/4] etnaviv: drop get_abs_timeout(..) Date: Wed, 23 Nov 2016 08:26:21 +0100 Message-Id: <1479885981-20186-5-git-send-email-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479885981-20186-1-git-send-email-christian.gmeiner@gmail.com> References: <1479885981-20186-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 It has no callers so drop it. Signed-off-by: Christian Gmeiner --- etnaviv/etnaviv_priv.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/etnaviv/etnaviv_priv.h b/etnaviv/etnaviv_priv.h index 30cc1bd..667bf23 100644 --- a/etnaviv/etnaviv_priv.h +++ b/etnaviv/etnaviv_priv.h @@ -189,15 +189,6 @@ struct etna_cmd_stream_priv { #define VOID2U64(x) ((uint64_t)(unsigned long)(x)) -static inline void get_abs_timeout(struct drm_etnaviv_timespec *tv, uint32_t ms) -{ - struct timespec t; - uint32_t s = ms / 1000; - clock_gettime(CLOCK_MONOTONIC, &t); - tv->tv_sec = t.tv_sec + s; - tv->tv_nsec = t.tv_nsec + ((ms - (s * 1000)) * 1000000); -} - static inline void get_abs_timeout_ns(struct drm_etnaviv_timespec *tv, uint64_t ns) { struct timespec t;