Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1865696ybd; Sun, 23 Jun 2019 18:42:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjDNZ7yV+6vPEhgf0/v90f9KO/bvLzBp9ZVVt2ICBR+CY1SPy02s0Eo4Awm0BGCElEdXaI X-Received: by 2002:a63:7f07:: with SMTP id a7mr13286190pgd.26.1561340578350; Sun, 23 Jun 2019 18:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561340578; cv=none; d=google.com; s=arc-20160816; b=poSGX6Fsvv4lVS7efIXvLZEnPCLAaemeQdpy3TQymLVOxxmTH9Vk7hTtq3Pd+Dcemb 0yed+4EiY+Y1MtFnQstDuktu5KPscEWhRwZ3FttEgYJThYhiYB4Q2Po1EFtAmv0ww/Y5 3JEPaWygqi/mJHZd30L6EO6I74evx6BSGQMLQLwATqWhAjynkPKHthxsFvMUoqS8vdpi aGF/jUe7gLEzRIWliWJgs9Zz+f54DT+ldySVcB72GQRUgKdgzB1mbnJfGPDBEOQa7tKz lJYW5L6kvX44O3F967Fp521e0omoQSXymtYS6ZYIys7Om8mTU6Z1s43q0bpqJj78nmmd 0QyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=cU6U0DTDpzt3ITirMeTEFL0anIB+F/Sdmvp7TuSAZkc=; b=dNHchtHzWCUMrTwvSVnF5vmfKiYC5xf6IVSaPMcvI7dzqraxpnDGlsCB4oVtqVHfrd MrUStkvm18ZkSfD621+9bTe+4luZzTx2at14j2gnrZvphSPtaUCdrN9NSA0mBeua08n6 Z7OGsqItDUmQw853lASNmPFMMOVka6OG2WJaBEHlrIRlwltVhncw+gkrXWoFCx+4WiKp KHa1t4h6l2nG7mARTM8JRcRj/p4lMU679DTZqDlpjLXm7vY3NwcURFBXGg5BsvoquDRj SxZkthMo9dqFLig/2qhs7/ZjCV1uhyx6S2nGR77uoxVoU+iK13Q8JVI/07LIVzVt/E75 vOQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019061801 header.b="yD/hblzZ"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s8si7835033plq.7.2019.06.23.18.42.42; Sun, 23 Jun 2019 18:42:58 -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; dkim=pass header.i=@zytor.com header.s=2019061801 header.b="yD/hblzZ"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726879AbfFXBlu (ORCPT + 99 others); Sun, 23 Jun 2019 21:41:50 -0400 Received: from terminus.zytor.com ([198.137.202.136]:51211 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726553AbfFXBk5 (ORCPT ); Sun, 23 Jun 2019 21:40:57 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x5NNupjx2860305 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 23 Jun 2019 16:56:51 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x5NNupjx2860305 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019061801; t=1561334212; bh=cU6U0DTDpzt3ITirMeTEFL0anIB+F/Sdmvp7TuSAZkc=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=yD/hblzZ86RHmH/i1/E9J/6kV/WgGChYHByBrVPwSRf5RaBWBsXLEzOtqT1glY58D P8G0qWTYlvNSR4B1Dsi9T0CPhm/zeFQQq1DNlkwRa9dSoQ6jWKTTWRq6wPgJlqeeC2 bg11jqXxrfA5UORCI5bcXQ2lMO6T9hkxnyVe5fnjfXStK9lE+3XDisxXhurKo6RllX p0COtxe8lHBHQptYcPybfk4NaPis9UrUfyqzfi+A5NCyb3YVXih1OXW3+xeMpIt/0Y IOVn7WVrIJWm7kJpomRgi3xcZj8NsaweiPKSV+Y6vqcc8h+aXvDIeFOsswpvomrWon pmogFJiqyfIOg== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x5NNuokd2860302; Sun, 23 Jun 2019 16:56:50 -0700 Date: Sun, 23 Jun 2019 16:56:50 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Vincenzo Frascino Message-ID: Cc: ralf@linux-mips.org, shuah@kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, linux@rasmusvillemoes.dk, will.deacon@arm.com, 0x7f454c46@gmail.com, mingo@kernel.org, tglx@linutronix.de, hpa@zytor.com, andre.przywara@arm.com, daniel.lezcano@linaro.org, sthotton@marvell.com, vincenzo.frascino@arm.com, pcc@google.com, linux@armlinux.org.uk, salyzyn@android.com, paul.burton@mips.com, catalin.marinas@arm.com, huw@codeweavers.com Reply-To: daniel.lezcano@linaro.org, sthotton@marvell.com, andre.przywara@arm.com, hpa@zytor.com, tglx@linutronix.de, mingo@kernel.org, will.deacon@arm.com, 0x7f454c46@gmail.com, linux@rasmusvillemoes.dk, arnd@arndb.de, shuah@kernel.org, linux-kernel@vger.kernel.org, ralf@linux-mips.org, huw@codeweavers.com, paul.burton@mips.com, catalin.marinas@arm.com, salyzyn@android.com, linux@armlinux.org.uk, pcc@google.com, vincenzo.frascino@arm.com In-Reply-To: <20190621095252.32307-25-vincenzo.frascino@arm.com> References: <20190621095252.32307-25-vincenzo.frascino@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/vdso] x86/vdso: Add clock_gettime64() entry point Git-Commit-ID: 22ca962288c0a1c9729e8e440b9bb9ad05df6db6 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=2.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_03_06,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, DKIM_VALID_EF,FREEMAIL_FORGED_REPLYTO,FREEMAIL_REPLYTO_END_DIGIT autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 22ca962288c0a1c9729e8e440b9bb9ad05df6db6 Gitweb: https://git.kernel.org/tip/22ca962288c0a1c9729e8e440b9bb9ad05df6db6 Author: Vincenzo Frascino AuthorDate: Fri, 21 Jun 2019 10:52:51 +0100 Committer: Thomas Gleixner CommitDate: Sat, 22 Jun 2019 21:21:10 +0200 x86/vdso: Add clock_gettime64() entry point Linux 5.1 gained the new clock_gettime64() syscall to address the Y2038 problem on 32bit systems. The x86 VDSO is missing support for this variant of clock_gettime(). Update the x86 specific vDSO library accordingly so it exposes the new time getter. [ tglx: Massaged changelog ] Signed-off-by: Vincenzo Frascino Signed-off-by: Thomas Gleixner Cc: linux-arch@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mips@vger.kernel.org Cc: linux-kselftest@vger.kernel.org Cc: Catalin Marinas Cc: Will Deacon Cc: Arnd Bergmann Cc: Russell King Cc: Ralf Baechle Cc: Paul Burton Cc: Daniel Lezcano Cc: Mark Salyzyn Cc: Peter Collingbourne Cc: Shuah Khan Cc: Dmitry Safonov <0x7f454c46@gmail.com> Cc: Rasmus Villemoes Cc: Huw Davies Cc: Shijith Thotton Cc: Andre Przywara Link: https://lkml.kernel.org/r/20190621095252.32307-25-vincenzo.frascino@arm.com --- arch/x86/entry/vdso/vclock_gettime.c | 8 ++++++++ arch/x86/entry/vdso/vdso32/vdso32.lds.S | 1 + 2 files changed, 9 insertions(+) diff --git a/arch/x86/entry/vdso/vclock_gettime.c b/arch/x86/entry/vdso/vclock_gettime.c index 1a648b509d46..d9ff616bb0f6 100644 --- a/arch/x86/entry/vdso/vclock_gettime.c +++ b/arch/x86/entry/vdso/vclock_gettime.c @@ -67,6 +67,14 @@ int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts) int clock_gettime(clockid_t, struct old_timespec32 *) __attribute__((weak, alias("__vdso_clock_gettime"))); +int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts) +{ + return __cvdso_clock_gettime(clock, ts); +} + +int clock_gettime64(clockid_t, struct __kernel_timespec *) + __attribute__((weak, alias("__vdso_clock_gettime64"))); + int __vdso_clock_getres(clockid_t clock, struct old_timespec32 *res) { return __cvdso_clock_getres_time32(clock, res); diff --git a/arch/x86/entry/vdso/vdso32/vdso32.lds.S b/arch/x86/entry/vdso/vdso32/vdso32.lds.S index 991b26cc855b..c7720995ab1a 100644 --- a/arch/x86/entry/vdso/vdso32/vdso32.lds.S +++ b/arch/x86/entry/vdso/vdso32/vdso32.lds.S @@ -27,6 +27,7 @@ VERSION __vdso_gettimeofday; __vdso_time; __vdso_clock_getres; + __vdso_clock_gettime64; }; LINUX_2.5 {