From patchwork Mon Jun 18 14:20:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 138962 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4013606lji; Mon, 18 Jun 2018 07:21:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK98tXZbC2bwvwwLFTjcZECX7p95KhRVshZtFo/kElUn4EETX0qi369sCglxjFt32o92MFp X-Received: by 2002:a65:4b82:: with SMTP id t2-v6mr10934486pgq.175.1529331683396; Mon, 18 Jun 2018 07:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529331683; cv=none; d=google.com; s=arc-20160816; b=Z8u7qTAG1IreJFxJYU7svrToiPWf0KjmwvW283m0qtZW39++4uhyQi86Wqos23JpJO IVh2Vki2N84Ub3tcMInyTwzferEVpIZmgwtySJYSyKMIQgOYNXR7ImIfvK+TZKkQ2PGp c24AgtpZ0ZF9TYCZdGhpWvEhrnFm36gqAoX2gQsfDZ6cDhCHWNms6bTdnDt8X+LWuUVx eJlckhJSm/k9FVLmsXWhETYlHTqMo6MHXAA50Wl7n1X6jvhQsb5p44X9wkbrgN1Kjbzd OLsc7mbvPC4u+2BJKrJRJjQzxsnBhWjfYPn6K59+fKoFBF8h2XpUB76dj7gY60UwiK2j O7mA== 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=MprbB9BtV5rARciuO0tzwNUD65Jt4eyH5U1c5E87XDw=; b=cRioFvqgsUPKjr5vVD1koh8KKkDEmoYTwmxdMgDahvVGKWKTj9XJTyiowJoYxTUu1v 2p1rBFQRPZxQtcIFjUI9PU8zsoICLZ7AVoJqtg4Fv29pyKHJz2uXJ2QgCYWAmfDGS4t6 y3qLbnjszkCN57tHxeJl9vxxNrbjRv9nlzLQ+hnzXZDOnQZARqulNKeYHedUqmrLNCcN TlLFLoY3YOYUiFK+vjQWCwvyVEwopYW2hUWiLXKPtXwVKB76b+Pg26M5g09ZjKZojlIv J8PD8LCLnxXZQvPUA9D33eSB7mcWPwVMTX3UiVItgXQgMJ4JSn2PtnrhlqGlZTbNAj1x /CeA== 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 61-v6si15675594plr.483.2018.06.18.07.21.23; Mon, 18 Jun 2018 07:21:23 -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 S934931AbeFROVU (ORCPT + 30 others); Mon, 18 Jun 2018 10:21:20 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:38035 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933445AbeFROVT (ORCPT ); Mon, 18 Jun 2018 10:21:19 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0MP3gp-1fXMvo3hZ9-006SEP; Mon, 18 Jun 2018 16:21:12 +0200 From: Arnd Bergmann To: Richard Cochran , Yangbo Lu Cc: y2038@lists.linaro.org, Arnd Bergmann , "David S. Miller" , Fabio Estevam , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ptp: replace getnstimeofday64() with ktime_get_real_ts64() Date: Mon, 18 J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bgNUvm7K0nhtb7pqCV5P+V0bqlTViNsQBNpjABcRxts/vfs= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org getnstimeofday64() is deprecated and getting replaced throughout the kernel with ktime_get_*() based helpers for a more consistent interface. The two functions do the exact same thing, so this is just a cosmetic change. Signed-off-by: Arnd Bergmann --- drivers/ptp/ptp_chardev.c | 4 ++-- drivers/ptp/ptp_qoriq.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.9.0 Acked-by: Richard Cochran diff --git a/drivers/ptp/ptp_chardev.c b/drivers/ptp/ptp_chardev.c index 767c485af59b..547dbdac9d54 100644 --- a/drivers/ptp/ptp_chardev.c +++ b/drivers/ptp/ptp_chardev.c @@ -221,7 +221,7 @@ long ptp_ioctl(struct posix_clock *pc, unsigned int cmd, unsigned long arg) } pct = &sysoff->ts[0]; for (i = 0; i < sysoff->n_samples; i++) { - getnstimeofday64(&ts); + ktime_get_real_ts64(&ts); pct->sec = ts.tv_sec; pct->nsec = ts.tv_nsec; pct++; @@ -230,7 +230,7 @@ long ptp_ioctl(struct posix_clock *pc, unsigned int cmd, unsigned long arg) pct->nsec = ts.tv_nsec; pct++; } - getnstimeofday64(&ts); + ktime_get_real_ts64(&ts); pct->sec = ts.tv_sec; pct->nsec = ts.tv_nsec; if (copy_to_user((void __user *)arg, sysoff, sizeof(*sysoff))) diff --git a/drivers/ptp/ptp_qoriq.c b/drivers/ptp/ptp_qoriq.c index 1468a1642b49..e8652c148c52 100644 --- a/drivers/ptp/ptp_qoriq.c +++ b/drivers/ptp/ptp_qoriq.c @@ -374,7 +374,7 @@ static int qoriq_ptp_probe(struct platform_device *dev) pr_err("ioremap ptp registers failed\n"); goto no_ioremap; } - getnstimeofday64(&now); + ktime_get_real_ts64(&now); ptp_qoriq_settime(&qoriq_ptp->caps, &now); tmr_ctrl =