Message ID | 20181109123730.8743-5-vincenzo.frascino@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EF5EF14D6 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 9 Nov 2018 12:38:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD2A62EC2B for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 9 Nov 2018 12:38:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE9BD2EC2F; Fri, 9 Nov 2018 12:38:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 959232EC2B for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 9 Nov 2018 12:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=T34bSPx0tWaBxVseY3zon4p2gYY4Hz3dwIvVZ4TEbCc=; b=B2FV+njVpQ1jqL pjC9AOFeQAXK9JeeN/L4KCHFkbVT6BCyFuKStpT1lxdYXdPwmI+3VlPRbdx+HGVq5khKUp9p1C4js atDXVpni2OcYyBHiFu89cwIqlv+5/mVySUtonYK6g74ypwfyYQ4ffiLBP2dFY1UPvacnVPxj1jsOQ CC5CsLoeuTRshe3SZSLwodaZ5Jfgjcax9hfifhH53aSdj/1UTpKC+yvkMUffun/DrBI9xPx6NmvLm 2eM1hXZjGJZN0duWsbwSuw6ZrI5gwmNm+aPhKaOUUCAT+6TAZzviESaONOxESm4S2GO8SAfNdmUlr 4afmjK7Sqb8YeXKXO1dQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gL633-0004Xa-10; Fri, 09 Nov 2018 12:38:05 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gL631-0004XI-V5 for linux-arm-kernel@bombadil.infradead.org; Fri, 09 Nov 2018 12:38:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UgYrtFEv6hpPLuiAQDMZry4dq4jhuPUF8+oaoQ7GtbI=; b=AwGwXnS4eJA2VYBOFSTYnAWFXH Rx2SU+h3oFycGhATgEIBShSWaxCOZcKn33z0qNcNvOFHB6+5tZWNKT7V0lAPz16wsd3OXL4i9YTsW 2acMVUJzhZihjaMCbY1zcLEfH3BwMYTLTnDee02Mo8BAGgL4lJ3YqplzpK9xP8mLXhOPo86r6eYLE sWgl/vsFJ7DLFPKR9+CfgtWpXu4wxBsS9/Dr9UDXBb1FAv/SLhZYNQWYrs++K3igiEiz6ZsrRzxEq GFloQb62RxtHpTL+HetgvFlPLQAFDLICz4T8mDhz3zE0B9AlPWg12v+AvNoeJ3ALxPjRRPma+2r4V /DshrF5A==; Received: from foss.arm.com ([217.140.101.70]) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gL62y-0006Sw-Qq for linux-arm-kernel@lists.infradead.org; Fri, 09 Nov 2018 12:38:02 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C4C5D1650; Fri, 9 Nov 2018 04:37:58 -0800 (PST) Received: from e119884-lin.cambridge.arm.com (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B310A3F718; Fri, 9 Nov 2018 04:37:56 -0800 (PST) From: Vincenzo Frascino <vincenzo.frascino@arm.com> To: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 04/27] kernel: Add masks support for Raw and NTP time Date: Fri, 9 Nov 2018 12:37:07 +0000 Message-Id: <20181109123730.8743-5-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181109123730.8743-1-vincenzo.frascino@arm.com> References: <20181109123730.8743-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181109_123801_145790_D784C1C3 X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Arnd Bergmann <arnd@arndb.de>, Catalin Marinas <catalin.marinas@arm.com>, Daniel Lezcano <daniel.lezcano@linaro.org>, Will Deacon <will.deacon@arm.com>, Russell King <linux@armlinux.org.uk>, Ralf Baechle <ralf@linux-mips.org>, Mark Salyzyn <salyzyn@android.com>, Paul Burton <paul.burton@mips.com>, Thomas Gleixner <tglx@linutronix.de>, Peter Collingbourne <pcc@google.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Unify vDSOs across more architectures
|
expand
|
diff --git a/include/vdso/datapage.h b/include/vdso/datapage.h index d50a108afaed..fb6ce4c3f2d0 100644 --- a/include/vdso/datapage.h +++ b/include/vdso/datapage.h @@ -36,8 +36,10 @@ struct vdso_data { __u64 tai_sec; /* International Atomic Time */ __u32 tb_seq_count; /* Timebase sequence counter */ __u32 cs_mono_mult; /* NTP-adjusted clocksource multiplier */ + __u64 cs_mono_mask; /* NTP-adjusted clocksource mask */ __u32 cs_shift; /* Clocksource shift (mono = raw) */ __u32 cs_raw_mult; /* Raw clocksource multiplier */ + __u64 cs_raw_mask; /* Raw clocksource mask */ __u32 tz_minuteswest; /* Whacky timezone stuff */ __u32 tz_dsttime; __u32 use_syscall;
Depending on the clocksource selected there can be supported a different resolution hence we require a mask to be applied to the time calculation. This patch exposes the mask in the datapage for Raw and NTP adjusted clock. Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com> --- include/vdso/datapage.h | 2 ++ 1 file changed, 2 insertions(+)