Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3986548imm; Mon, 18 Jun 2018 07:23:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIpEHZQKPcl6un7UJblb9KgmXwHa4B/YUNiVRYd6fPv4lUXT2lwRaTasBBJgwRljXk21fci X-Received: by 2002:a62:9e88:: with SMTP id f8-v6mr13727602pfk.206.1529331824282; Mon, 18 Jun 2018 07:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529331824; cv=none; d=google.com; s=arc-20160816; b=VqmAJpyN9Me3iyBCfIz8XxX3s224VjgFP45U3eX3zhQaEqYlAUkzEN4TYp26qCe8F+ Pq8LRMsb3wRX+YDmJ/S49sG9FeKkk/phefWpTpAuwTKHrCqzANVRAz/JSP76IDX3AvS4 8Mx9/Gus+dPSrSWjV2UE0CfdBAqhIDlhrzkjZwOMh5ZKnYlpJH8V3BsXjEr5i9493DAa kKWDi2FFCE4rqqyw8ywQ5eSLGRsi41kz3we++F94BcdQvS5GrnnHzYrBcPCNgmF3XLsP yWuI9EwBxy+oIAMChmzVRjtf0QpuSOIP6jZzWc8MS8P6o3/virYevrr20TzZdNPUwqXD qUxA== 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 33-v6si14799478ply.344.2018.06.18.07.23.30; Mon, 18 Jun 2018 07:23:44 -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 S934924AbeFROVU (ORCPT + 99 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 Jun 2018 16:20:39 +0200 Message-Id: <20180618142109.3445025-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:DyjzbJGryhQxvJQc2aQ48knZXBAaUySvgqWgTCV1ih6dJJVXN2v Yg0TEgh5qeFayPMpvvEueyRhuFupmjG6bXsSfWxNGuCc+RyBLF9D0VhNvFtk7tYslqjzfT6 e6EE8vrW5P4+W4qwbLQq22wO27FLIZgHnXGafyFkgNIDJ2ZD8mdqHV05nX2N9/jikYO9vPR 7PIJbMhv5+LdH8eIRmzoQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:BSYMvt0trUQ=:z0Y6m1VZk5HcmOW7uN4wlv DyqnxhmhFJQo5E0Nn7AEw+sqkel/S5WhbApyM6rMG6s7rnJFjeWO1iofIOgAmxL7Cu6Yl/a6y pUI7AFAVRbGLIVDbwAG7cQ3VmqpshB8ktmVEStMnDUsPD8yWJ/KoZQqa3j0J6+xqfyGR5H6F5 YFlQuBgY7PDx8Yn+hQrF4CVVawUazabUmzwPaA7mYo7Iv0D+PDqAoVgvOJ+Q+YcH2/gKmvuuE VENWSb4kk4IiBRLC8ymRxI9cM3fGHVpwt/cS4jBA4UmmVNeNUvx6HQwGCwuDjdY12XM7pbabe Zfy9rsJqVR6E1ihvhsntbXur9JDVyvEFT4+sOR3ThiGoIfTNOSC6ie7QZ+HeuBpsbeQpvIzH+ hRRY6QQ4gxKWYDE7F7EiLwwyNye6P0d9DVvZ+eQcIiN0Kw/WacmSVJHjXDqwSNvTJDobRmCfV A1g6vHwJtRtL84vFU+GuKtSlkiaxIm9B3CBwW/H+Yxt33K1RuJop1D8DRF5/Zqqu0VjT1T83T ssu6dKgwoUGe0b52srldtLNRfRL+KFX3wHSgf0nmu5eRbT1YLdbW+Wze3HgWD0kCnHR0cuIYa 1luSEKrWLMfBfLRAWXvoxEDkqW0Z9QbQfxAoUhnoFBs1OTYYzfMZhy5QOgOng6paUT+zFXrJ9 +j5Jg9HtUnZIT51R5XR2SbgNUvm7K0nhtb7pqCV5P+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(-) 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 = -- 2.9.0