Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp475953ybi; Fri, 21 Jun 2019 02:54:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRaYISCcO4VCbNSZAdaf4wUiXUx6D7dEQoxTlv8o3lCI/TpjjGqzP9Xu6ZWZAHuzO/rInK X-Received: by 2002:a65:6204:: with SMTP id d4mr17329011pgv.104.1561110886229; Fri, 21 Jun 2019 02:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561110886; cv=none; d=google.com; s=arc-20160816; b=srU8g6VO7TzR9Mn6JLT/gs8nkPU5lfejfe4+Yfoxaend2qAw2gRk7Cr8K6yQgztWLu oSIk/C9/sUOF0dF2Vvw7HOYTyatq1pQNi6wgZD0VMdVyDarCvCNlioeLU5Js3d4ZtvQ6 cND79RhrCWOqQ1Gvduh2CCzNu6QvznJDeby7Iy0ddU959f6YwaQqs99QjyybYGcNoxFz iabGPTCsc6iPeShGYQjYTo93pwRv+hQpUu9uW/uEc9KbCyVDY6tBoMPcw6xoIhWgFmkC NC1z9qUxR+2Gvk1vMybHcmfWtz2w6XNvKZA91kMCAhl4hf6BXb+SaQ2dQb/Ia0SZSy61 Eqww== 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=BS3WZ1SWPXinGz/WYFpLy/iqjXywbVXVvYAoJz/OtZs=; b=tsneOF+Yew73YDXDCelLd+CQZXAJicEjMV+W070TMtK9JByEYhkwm21HCp2OWc1ni1 gybEoC6BUTe5JitbaAjoNGnvJrvukrOh1Ob/MaU4WSo2AHpT+9LprM9JXgJ4+p7YND7A V6v1bP995TX920l1g/ekQDZNLcCU35PtDlWhsQatkd9hzP7gtco+s0uAj8G+pRDBhnm6 rbaFsnF3yBBe6N3cp5lcd4naMN9zlC3sjb+9ecR3HC2n+5NkITmYVXGyZFO67SqoUWKm mIX7uyoMCaqWIbWzX+Y+2aYBbgX/MdJWGtveLhgHDFp5joTBFTiuj1F0NX/NIramXdws 6kHQ== 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 m21si2223721pls.48.2019.06.21.02.54.31; Fri, 21 Jun 2019 02:54:46 -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 S1727106AbfFUJx7 (ORCPT + 99 others); Fri, 21 Jun 2019 05:53:59 -0400 Received: from foss.arm.com ([217.140.110.172]:55724 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726603AbfFUJx6 (ORCPT ); Fri, 21 Jun 2019 05:53:58 -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 6AA03142F; Fri, 21 Jun 2019 02:53:57 -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 D592A3F246; Fri, 21 Jun 2019 02:53:54 -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 18/25] arm: Add clock_gettime64 entry point Date: Fri, 21 Jun 2019 10:52:45 +0100 Message-Id: <20190621095252.32307-19-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 arm specific vDSO library accordingly with what it has been done for the kernel syscall exposing the clock_gettime64 entry point. Cc: Russell King Signed-off-by: Vincenzo Frascino --- arch/arm/vdso/vdso.lds.S | 1 + arch/arm/vdso/vgettimeofday.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/arch/arm/vdso/vdso.lds.S b/arch/arm/vdso/vdso.lds.S index 1d81e8c3acf6..05581140fd12 100644 --- a/arch/arm/vdso/vdso.lds.S +++ b/arch/arm/vdso/vdso.lds.S @@ -83,6 +83,7 @@ VERSION __vdso_clock_gettime; __vdso_gettimeofday; __vdso_clock_getres; + __vdso_clock_gettime64; local: *; }; } diff --git a/arch/arm/vdso/vgettimeofday.c b/arch/arm/vdso/vgettimeofday.c index d3330c0c1147..0742a0bb4763 100644 --- a/arch/arm/vdso/vgettimeofday.c +++ b/arch/arm/vdso/vgettimeofday.c @@ -26,6 +26,12 @@ int __vdso_clock_gettime(clockid_t clock, return __cvdso_clock_gettime32(clock, ts); } +int __vdso_clock_gettime64(clockid_t clock, + struct __kernel_timespec *ts) +{ + return __cvdso_clock_gettime(clock, ts); +} + int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) { -- 2.21.0