From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39664 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730214AbeK3EMC (ORCPT ); Thu, 29 Nov 2018 23:12:02 -0500 From: Vincenzo Frascino Subject: [PATCH v2 02/28] kernel: Add Monotonic boot time support Date: Thu, 29 Nov 2018 17:05:04 +0000 Message-ID: <20181129170530.37789-3-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: <20181129170504.uOtDpFBgy73vryiV1ZWbxXn2uSdAuxT339C4MvY8Wx8@z> Currently, datapage.h has no support for CLOCK_BOOTTIME. CLOCK_BOOTTIME is identical to CLOCK_MONOTONIC, but includes any time spent in suspend. This patch adds monotonic boot time support (btm_nsec) 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 a02ca170d56e..52189c21d422 100644 --- a/include/vdso/datapage.h +++ b/include/vdso/datapage.h @@ -32,6 +32,7 @@ struct vdso_data { __u64 xtime_coarse_nsec; __u64 wtm_clock_sec; /* Wall to monotonic time */ __u64 wtm_clock_nsec; + __u64 btm_nsec; /* Monotonic to boot 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