From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752840AbdFUJgl (ORCPT ); Wed, 21 Jun 2017 05:36:41 -0400 Received: from foss.arm.com ([217.140.101.70]:49548 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751223AbdFUJgj (ORCPT ); Wed, 21 Jun 2017 05:36:39 -0400 Date: Wed, 21 Jun 2017 10:36:51 +0100 From: Will Deacon To: John Stultz Cc: lkml , Thomas Gleixner , Ingo Molnar , Miroslav Lichvar , Richard Cochran , Prarit Bhargava , Stephen Boyd , Kevin Brodsky , Daniel Mentz Subject: Re: [PATCH 1/4] time: Clean up CLOCK_MONOTONIC_RAW time handling Message-ID: <20170621093651.GH3768@arm.com> References: <1498022493-20292-1-git-send-email-john.stultz@linaro.org> <1498022493-20292-2-git-send-email-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1498022493-20292-2-git-send-email-john.stultz@linaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 20, 2017 at 10:21:30PM -0700, John Stultz wrote: > Now that we fixed the sub-ns handling for CLOCK_MONOTONIC_RAW, > remove the duplicitive tk->raw_time.tv_nsec, which can be > stored in tk->tkr_raw.xtime_nsec (similarly to how its handled > for monotonic time). > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Miroslav Lichvar > Cc: Richard Cochran > Cc: Prarit Bhargava > Cc: Stephen Boyd > Cc: Kevin Brodsky > Cc: Will Deacon > Cc: Daniel Mentz > Tested-by: Daniel Mentz > Signed-off-by: John Stultz > --- > arch/arm64/kernel/vdso.c | 6 ++--- > include/linux/timekeeper_internal.h | 4 ++-- > kernel/time/timekeeping.c | 45 ++++++++++++++++++++----------------- > 3 files changed, 29 insertions(+), 26 deletions(-) > > diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c > index d0cb007..7492d90 100644 > --- a/arch/arm64/kernel/vdso.c > +++ b/arch/arm64/kernel/vdso.c > @@ -220,10 +220,8 @@ void update_vsyscall(struct timekeeper *tk) > if (!use_syscall) { > /* tkr_mono.cycle_last == tkr_raw.cycle_last */ > vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; > - vdso_data->raw_time_sec = tk->raw_time.tv_sec; > - vdso_data->raw_time_nsec = (tk->raw_time.tv_nsec << > - tk->tkr_raw.shift) + > - tk->tkr_raw.xtime_nsec; > + vdso_data->raw_time_sec = tk->raw_sec; > + vdso_data->raw_time_nsec = tk->tkr_raw.xtime_nsec; > vdso_data->xtime_clock_sec = tk->xtime_sec; > vdso_data->xtime_clock_nsec = tk->tkr_mono.xtime_nsec; > vdso_data->cs_mono_mult = tk->tkr_mono.mult; For this arm64 bit: Acked-by: Will Deacon Will