Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp476238ybi; Fri, 21 Jun 2019 02:55:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0iOyuubL7+H5fNKB/T8oN6XSnzMJIHc1KMh4MgkWSYIx6kss5+Iz4q4U4NdGC+H+KGzIT X-Received: by 2002:a17:90a:36e4:: with SMTP id t91mr5341443pjb.22.1561110909278; Fri, 21 Jun 2019 02:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561110909; cv=none; d=google.com; s=arc-20160816; b=pUXtXT5B2FdgOyxtMMxMq8wvmRrFKEKpqvF2tvI0BIGuhccImle9rYK1D5+p1fIGsq 12WVSQJy/xTpQ+E1pG8NFmT0k0RyYDamziRBiEIxJau70f2S07RO2YYy/snu5d7vbueb oeFV3/cISQcQuY3G7f17VXgmbrSQvpJehhUsV7jPbHlCvVLTwogSJh/xilk73xI0u2A3 V/20J1XR0gGrUpaiO460anj1dnlLQWSFuVa4MRugJ2LUu2/ywU91hDQyWch/mndCDef9 zUomHoaSMT9AwtD71gxSWh6oaggXoKxkkmI+5l8HlHsB1F4n1PU18rvJstinhXTF2JZS Dgug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9vp4OE+yj+zhIDB/mzpgtKFzuEIz3rtP8CMalOOKZ7U=; b=X7jEGV5xT6ticvme6gydpPaKKC7VPvsvRFVFSSEoQ+DVooxiTUuKxV/aN6UfJeByzS jhDZLv7mSBPf+oLzZ86wR86gTUuI6MnccBGKgt0ot7VWz8TlSNEZAg9uFe9lP9WOhJR0 kIy1OCVQwTvVsfVZGCFMG8eXWY7Ztxp9Q+wA3cedx72SLVECk53R7gPVm/8vAV3+ytZq MioDTBXwd9g9xminB/nnwxRl3gvWyfkem7PXo7jUCw/+p3ovL7Km3ffa1ojA3rcTkBWC EGqMXHMZqt0FtGvNY8a3Nn4Aqa/mpYO8VnbvRcaUqOaGsCzu8muvmWxjiid6nzQGY5cg +0GA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si2154888pll.377.2019.06.21.02.54.54; Fri, 21 Jun 2019 02:55:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727216AbfFUJyQ (ORCPT + 99 others); Fri, 21 Jun 2019 05:54:16 -0400 Received: from foss.arm.com ([217.140.110.172]:55926 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726425AbfFUJyO (ORCPT ); Fri, 21 Jun 2019 05:54:14 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2AAEF1478; Fri, 21 Jun 2019 02:54:14 -0700 (PDT) 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 9293B3F246; Fri, 21 Jun 2019 02:54:11 -0700 (PDT) From: Vincenzo Frascino To: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Catalin Marinas , Will Deacon , Arnd Bergmann , Russell King , Ralf Baechle , Paul Burton , Daniel Lezcano , Thomas Gleixner , Mark Salyzyn , Peter Collingbourne , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , Huw Davies , Shijith Thotton , Andre Przywara Subject: [PATCH v7 24/25] x86: Add clock_gettime64 entry point Date: Fri, 21 Jun 2019 10:52:51 +0100 Message-Id: <20190621095252.32307-25-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190621095252.32307-1-vincenzo.frascino@arm.com> References: <20190621095252.32307-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the release of Linux 5.1 has been added a new syscall, clock_gettime64, that provided a 64 bit time value for a specified clock_ID to make the kernel Y2038 safe on 32 bit architectures. Update the x86 specific vDSO library accordingly with what it has been done for the kernel syscall exposing the clock_gettime64 entry point. Cc: Thomas Gleixner Signed-off-by: Vincenzo Frascino --- arch/x86/entry/vdso/vclock_gettime.c | 7 +++++++ arch/x86/entry/vdso/vdso32/vdso32.lds.S | 1 + 2 files changed, 8 insertions(+) diff --git a/arch/x86/entry/vdso/vclock_gettime.c b/arch/x86/entry/vdso/vclock_gettime.c index de9212a4833e..d6d03e933191 100644 --- a/arch/x86/entry/vdso/vclock_gettime.c +++ b/arch/x86/entry/vdso/vclock_gettime.c @@ -65,6 +65,13 @@ 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) { 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 { -- 2.21.0