From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincenzo Frascino Subject: [PATCH v2 03/28] kernel: Add International Atomic Time support Date: Thu, 29 Nov 2018 17:05:05 +0000 Message-ID: <20181129170530.37789-4-vincenzo.frascino@arm.com> References: <20181129170530.37789-1-vincenzo.frascino@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20181129170530.37789-1-vincenzo.frascino@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Arnd Bergmann , Catalin Marinas , Daniel Lezcano , Will Deacon , Russell King , Ralf Baechle , Mark Salyzyn , Paul Burton , Thomas Gleixner , Peter Collingbourne List-Id: linux-arch.vger.kernel.org Currently, datapage.h has no support for CLOCK_TAI. CLOCK_TAI is similar to CLOCK_REALTIME, but uses the International Atomic Time (TAI) reference instead of UTC to avoid jumping on leap second updates. This patch adds CLOCK_TAI (tai_sec) support to datapage.h. Cc: Arnd Bergmann Signed-off-by: Vincenzo Frascino --- include/vdso/datapage.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/vdso/datapage.h b/include/vdso/datapage.h index 52189c21d422..d50a108afaed 100644 --- a/include/vdso/datapage.h +++ b/include/vdso/datapage.h @@ -33,6 +33,7 @@ struct vdso_data { __u64 wtm_clock_sec; /* Wall to monotonic time */ __u64 wtm_clock_nsec; __u64 btm_nsec; /* Monotonic to boot time */ + __u64 tai_sec; /* International Atomic Time */ __u32 tb_seq_count; /* Timebase sequence counter */ __u32 cs_mono_mult; /* NTP-adjusted clocksource multiplier */ __u32 cs_shift; /* Clocksource shift (mono = raw) */ -- 2.19.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com ([217.140.101.70]:39694 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730214AbeK3EMF (ORCPT ); Thu, 29 Nov 2018 23:12:05 -0500 From: Vincenzo Frascino Subject: [PATCH v2 03/28] kernel: Add International Atomic Time support Date: Thu, 29 Nov 2018 17:05:05 +0000 Message-ID: <20181129170530.37789-4-vincenzo.frascino@arm.com> In-Reply-To: <20181129170530.37789-1-vincenzo.frascino@arm.com> References: <20181129170530.37789-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Catalin Marinas , Will Deacon , Arnd Bergmann , Russell King , Ralf Baechle , Paul Burton , Daniel Lezcano , Thomas Gleixner , Mark Salyzyn , Peter Collingbourne Message-ID: <20181129170505.vro7uvKr37rSPnCyCqkjko0r7AckX-sBa3baL0v-Y8U@z> Currently, datapage.h has no support for CLOCK_TAI. CLOCK_TAI is similar to CLOCK_REALTIME, but uses the International Atomic Time (TAI) reference instead of UTC to avoid jumping on leap second updates. This patch adds CLOCK_TAI (tai_sec) support to datapage.h. Cc: Arnd Bergmann Signed-off-by: Vincenzo Frascino --- include/vdso/datapage.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/vdso/datapage.h b/include/vdso/datapage.h index 52189c21d422..d50a108afaed 100644 --- a/include/vdso/datapage.h +++ b/include/vdso/datapage.h @@ -33,6 +33,7 @@ struct vdso_data { __u64 wtm_clock_sec; /* Wall to monotonic time */ __u64 wtm_clock_nsec; __u64 btm_nsec; /* Monotonic to boot time */ + __u64 tai_sec; /* International Atomic Time */ __u32 tb_seq_count; /* Timebase sequence counter */ __u32 cs_mono_mult; /* NTP-adjusted clocksource multiplier */ __u32 cs_shift; /* Clocksource shift (mono = raw) */ -- 2.19.2