Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4068418imm; Mon, 18 Jun 2018 08:38:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIftMYuK3/UnxLO8jStrttfM0gutD/rP2fYi2ncvF9ZD4ba+MCb4KPvaH2CQAK4D6TKMEMP X-Received: by 2002:a62:d0c5:: with SMTP id p188-v6mr14218508pfg.101.1529336305215; Mon, 18 Jun 2018 08:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529336305; cv=none; d=google.com; s=arc-20160816; b=v4J2BB+lVNDYgj1gp1J9cBdc5mEMZToM2eTlsZ/qiTYdXsvmakX1tnlHW12eWfmu7/ dXVVDEiSuVbfBmxmwYYV0moT/JlpiY7QkELdXxvznQpby7j8Wg6Xo/5rYbFNGPVFsZ0Y Zebo9USvB/AN3GC+YCvua3K5VNZsxB5hM1ftdKVpWO4NBRmEx1f+HnP7TOzfWx7j9p7Q Q4h+GxnTsuD7/SG5LgZJ34gtxzWs44J4FFSe1qRo+LzI2hgzE162Ch3skpMroIbh5MjI 8sT+2mhhNf37iWxspKpXsXdpzc0ktf+xmC1FjXtFXezWLtMiwo5TNbxKmRErJ3DfnClW eeXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=uxxBLhe/idgo3WlI4Lq35sTnkxvIVRwUzLpxLhwJH1o=; b=shz2Y/foAQzkec2FcJ4cJwf0POVaNiwHWc4jZN1L+3duRVj5d08edAvEYKystFG2qK m1ygK2UwT4x9oAuviCVKdB6MYaruUGBw54YWxPb6XztAkdfdI9yfpCH46IyRskPHw3Yy xMDR91DhuPLUMIvdooAis7TT+eZBwhp6cuyZ3cLlbWIGqOkwt8TlHpfD96mFmrCZeiQF 3ksBGetL1QVLwnBUE2mB8aR+Oxo0whaCTveUHgrh7E4pVi1qEsjOdQk79sXNVxqRFntM nLlC9DQtAkJ9qZ+6Nk3P0XMzJwW22wmwZA3gVKGdQSJ3gCgFHVw3IJH6XVn7f0tM/cDZ qjOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g15-v6si14736040plq.242.2018.06.18.08.38.11; Mon, 18 Jun 2018 08:38:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933157AbeFRPhK (ORCPT + 99 others); Mon, 18 Jun 2018 11:37:10 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:56165 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754315AbeFRPhG (ORCPT ); Mon, 18 Jun 2018 11:37:06 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0MBCPl-1fKnjt2bAr-00AIhq; Mon, 18 Jun 2018 17:36:52 +0200 From: Arnd Bergmann To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "David (ChunMing) Zhou" Cc: y2038@lists.linaro.org, Arnd Bergmann , David Airlie , Harry Wentland , Tony Cheng , Dave Airlie , Rex Zhu , Dmytro Laktyushkin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] amdgpu: display: use modern ktime accessors Date: Mon, 18 Jun 2018 17:35:10 +0200 Message-Id: <20180618153649.2015346-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:umsIqZTYk65nIOAMmpzwLpWL5u8ImQJ5rWj9gtL+ZRvrmMMC8xm Aw7nhgvySm0hxF74R58WsTbwxPV9hnwSh6Q+l9hfmDwZY2MyzMUCv4an74skto9qtYOSNi3 7mmePBstEtb40MigtaBIT4e2sNsM62nxLj4VXbUYzM43uP5jTLyf2BKtUeEpSI9TaV44GgE Ajvji/GbHsbU6cChgRzgw== X-UI-Out-Filterresults: notjunk:1;V01:K0:NEAG4fL1p+g=:cKodtql/M4riIKlQ8m1QVU 03qz6tEq65SMrszdHGIZ2I6K1Wmk432P+kCf3nTtABUCDr02L/R7pXC28sb1ZF1jpjn5JecDw 2oUBr31b/WS1EMTZFVP5OpQbGkndfdAwAC942cCgFGndMz+K0P79G6F6h6/8NlyC3zIEbpVyR baurbEy+0NJu1VLbjbg5h/tOFO+l+ywMaGVNWofZJkE/Rzb73vNJoi6T2x/Lp8G1Q4CNWtSFJ Mi6Jmwp2Y77FffingxZtK9DwzL61xOm946fGCKKojQzmDeHvMAh5ksSmzf7+MZSSYDGl1/rDc dywLqw2V+qHcvfzi7z6ZDkAnIuiKiseCkG8Oz3tinlgLZvgukxzWvKEEZc1/nin/jCC0uIonb FtZ4uh539V1WqTLtzHqQLYyqMemQk+uheEYHHcwMdb2cF+BDJxGrmg8FZOHj7eX0JeunuVGcK 7KsO4WrL6BgMSmXdZeX7IL4IIXraLm+o443irddYYTuPHjv+Ehy6Y9tvDV5KKhMLPKDu2Vf64 FODrXj5tur55J891p8orxrgyuRbEhz84SrdCfnomAABMg4qrdKD8Guo+lQfNEy1VSdU93Ex3J PMCGRuGPdX4shF/xy5PadlEgLMrT7QeSGByeh73Plce+NaMyWn5DeNY2HL3plW0xS4d4a8KpB +Y+ivFKxLCn+gQwvnwUe3qT34itFt0zHIw76AxecyEArrAduFStXSJw+2BMAg7ZU3uJA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org getrawmonotonic64() is deprecated because of the nonstandard naming. The replacement functions ktime_get_raw_ns() also simplifies the callers. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c | 8 -------- drivers/gpu/drm/amd/display/dc/dm_services.h | 5 ++++- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c index 5a3346124a01..e861929dd981 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c @@ -35,14 +35,6 @@ #include "amdgpu_dm_irq.h" #include "amdgpu_pm.h" -unsigned long long dm_get_timestamp(struct dc_context *ctx) -{ - struct timespec64 time; - - getrawmonotonic64(&time); - return timespec64_to_ns(&time); -} - unsigned long long dm_get_elapse_time_in_ns(struct dc_context *ctx, unsigned long long current_time_stamp, unsigned long long last_time_stamp) diff --git a/drivers/gpu/drm/amd/display/dc/dm_services.h b/drivers/gpu/drm/amd/display/dc/dm_services.h index 4ff9b2bba178..eb5ab3978e84 100644 --- a/drivers/gpu/drm/amd/display/dc/dm_services.h +++ b/drivers/gpu/drm/amd/display/dc/dm_services.h @@ -339,7 +339,10 @@ bool dm_dmcu_set_pipe(struct dc_context *ctx, unsigned int controller_id); #define dm_log_to_buffer(buffer, size, fmt, args)\ vsnprintf(buffer, size, fmt, args) -unsigned long long dm_get_timestamp(struct dc_context *ctx); +static inline unsigned long long dm_get_timestamp(struct dc_context *ctx) +{ + return ktime_get_raw_ns(); +} unsigned long long dm_get_elapse_time_in_ns(struct dc_context *ctx, unsigned long long current_time_stamp, -- 2.9.0