From patchwork Mon Jun 18 14:08:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 138953 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3999241lji; Mon, 18 Jun 2018 07:08:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL+YBPhW1jWZWa8xvMyU2zdQ2wdzs9kag0qgGz7ZP2NEqCI705i5dAfrcnFG9940dUnYi3i X-Received: by 2002:a17:902:206:: with SMTP id 6-v6mr14336307plc.294.1529330936867; Mon, 18 Jun 2018 07:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529330936; cv=none; d=google.com; s=arc-20160816; b=KEpOsluNoTbZ/LSUXHPXOYxTSV4NQnNHp2sLtxpm3blEBc7kLi16HczcfeEVKNJsJE /YTDF9zwCYTqOoruWMjuVa8FSK0tg07ezjE0TU790IsF1FaguN47WuuqhbdHTkx7KaML +BkY05Tlvt0GmDqJmG/S/2Aik8I+TFK6YTpAu6TNVpbweafO+oZUv3M8gXotj18/FNS7 HMGj7zZiiR405boSm8dFf/vJ9tBGNK5WHAJ4I2laDOzTC6Xw8bInFFg+HKHMqajDMx9E lig2+uUf9WY8PmBasyVIpevvNGeb3zC20jliAm36VcA1dU3n5MFzuZYZLmRPZ3sO7vX+ VYgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Pr864r8o8pBz70CbFp5ISriT7uy/eprlC7QsRdp3Dr8=; b=JI5MZ7cijLbovjDxoo1LK7q2H+In1PUBMMxeY62m4IyIm65AhKQDMP7GHf3p5xFfGo 6rqP9RcVAW+16zDfGqAR6MXZ0RE4pQx/xLu5Bq3635Cc22nLDGpITh3s2gahHTRKektr FG20yVcF00erTwv6TpXq/rF6lIKTKqLOpqjNXYUbRveENDsrrRB5uAcdsn+XiIysrsm5 Vdu7NNSIVPsXzI3QVY0JgOrtkiLh5KW28LQmQ66/d+xyrGIOeQMJwDJBYfrgPrbfrGl5 C4rUZpyNN9DdX3eSQ5l2Tndtks2MyHVnV4VvQSaHShFyFH+/XpWVcyCmCCiUtKR7pReX 41zQ== 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 g17-v6si14607043plo.355.2018.06.18.07.08.56; Mon, 18 Jun 2018 07:08:56 -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 S933830AbeFROIz (ORCPT + 30 others); Mon, 18 Jun 2018 10:08:55 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:50337 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754601AbeFROIx (ORCPT ); Mon, 18 Jun 2018 10:08:53 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0MC1MO-1fM58435wO-008vJO; Mon, 18 Jun 2018 16:08:40 +0200 From: Arnd Bergmann To: Thomas Gleixner , John Stultz Cc: y2038@lists.linaro.org, Arnd Bergmann , Stephen Boyd , Ingo Molnar , Miroslav Lichvar , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] timekeeping: use ktime_get_real_ts64() instead of getnstimeofday64() Date: Mon, 18 Jun 2018 16:08:01 +0200 Message-Id: <20180618140811.2998503-3-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180618140811.2998503-1-arnd@arndb.de> References: <20180618140811.2998503-1-arnd@arndb.de> X-Provags-ID: V03:K1:Wjc6Acd7epJAakSEfRIj6Q0bDR2aY4j5OVhwZfl6AS4iA9yxzzS LX80oCYQRT8sPr9mePhBUrkuq4cDxK2orqsufvKQ9xajCGzVW3dD8D1luWs7uywT4SHTRUo PQF7u0BwvTRA0AV0VldV9mHl0jqvpcYcU1aGHUIV6IojEoyXQKNpiOuZ0SyP0n7hYQ/jxSZ Asqhq0SHcVIkUhDSLre8Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:K1Xd0KNhYVY=:YxRkWWetJz0fF4O9xKXQHN LYxYKkkyWuCZ9qfzrPZe0unqU4ZxoSt7sOioub+aeFqVWMJRwwTfgGOoE+kpBkhtSBQWCgXvV 3+Xh4I78Kne1bTwHcRhwVd89bKkrtvMl18F86+Km8GAsQUjEaBJHSW86lq5djcWcqc9YXVodH gWh3NXuCzDMBMu9wRxh8Elpw0ja/2Z1tlvlMGWWtcss8bJQtozCwGqmJhuEv2LPqsplDZn2pc WHHI3YmcWhATD1yGcChWh8F5ea6ebt2DJL01LwglKZ+HR8d7J+ChNtpL+iIs6nwuFoSp53mqN euPsh8ZQQHsufa1vRYs4+bnxz6OL/wXz5EKSRYv0u71FpN6mI15xAF2RxU/mODTj5ZzuEkupG 1L3i/uGq8oUHX+P0Cf9vaKv432y5W/HDzviFvBHTAGBU18e9QiSh58QEcAC13qQDs8vo+TB7G VlLRZnlInNZ0VyYnCi9ZkZtLcg13yV6Qrb89KTNvMtNN4E5AT6AZVj2AhyPtE9vxtpy8mWi47 LfTt4Vf5JeQPwMJMwNm2L9JllOzDi/OnVa4gZ3/+o+qL1rSO4UhM+d/fG2xxeT66A4mOohph5 Jy2bF5ydq2O7y+t7LckR3WDWcKb49+IGJSkEUk3r8Fc0xg2nIXjSVY7IkaCY8CJa5OCWDTH/2 LhHn2MmUiaYrCnB3JKnVgtvzoQccM2ULo4+38/GffwGWt+SdUXE2QJCnscS9cR6Byp10= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The two do the same, this moves all users to the newer name for consistency. Signed-off-by: Arnd Bergmann --- kernel/time/ntp.c | 6 +++--- kernel/time/timekeeping.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) -- 2.9.0 diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c index a09ded765f6c..10a79053e82f 100644 --- a/kernel/time/ntp.c +++ b/kernel/time/ntp.c @@ -502,7 +502,7 @@ static void sched_sync_hw_clock(struct timespec64 now, { struct timespec64 next; - getnstimeofday64(&next); + ktime_get_real_ts64(&next); if (!fail) next.tv_sec = 659; else { @@ -537,7 +537,7 @@ static void sync_rtc_clock(void) if (!IS_ENABLED(CONFIG_RTC_SYSTOHC)) return; - getnstimeofday64(&now); + ktime_get_real_ts64(&now); adjust = now; if (persistent_clock_is_local) @@ -591,7 +591,7 @@ static bool sync_cmos_clock(void) * Architectures are strongly encouraged to use rtclib and not * implement this legacy API. */ - getnstimeofday64(&now); + ktime_get_real_ts64(&now); if (rtc_tv_nsec_ok(-1 * target_nsec, &adjust, &now)) { if (persistent_clock_is_local) adjust.tv_sec -= (sys_tz.tz_minuteswest * 60); diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 4786df904c22..77c436a0070b 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -2310,7 +2310,7 @@ int do_adjtimex(struct timex *txc) return ret; } - getnstimeofday64(&ts); + ktime_get_real_ts64(&ts); raw_spin_lock_irqsave(&timekeeper_lock, flags); write_seqcount_begin(&tk_core.seq);