Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp476056ybi; Fri, 21 Jun 2019 02:54:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyogU8ePFX9SzLIYdlzJH+mCm9iSsLrV37DgFAm/3hAM2blcfkgtnMHhk+9uFksKh8TNUQL X-Received: by 2002:a17:902:148:: with SMTP id 66mr122046948plb.143.1561110895342; Fri, 21 Jun 2019 02:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561110895; cv=none; d=google.com; s=arc-20160816; b=Jp3sLD8utHA7VtJQOvyOvpVvY7Co9/xUnv1rSvTBtvH+em51vUlkfPVZa8zrfEvCTz 2Y8sMnWO2x/ZsfyXPeqz7DhZWpwa3Er5nJKBMa6bSrKwC+952oke5EKqiAGb6kkj60ON qctenu9XqF1HvVlj0uT5ALJOAW0V/kf/jOrCbeD32UpUcyLjpqUGiJiD9N/D1OwHduuN ArlI6iwZRZkKz5Iqh3EfKiZfpLEvnIkKdPc1eawYlCmsfxQczNseajxemVeN4uvPqppH 5U+0tGn3jXtlUhauoH8uN9fdSxRj72R33iG6BJviQsUqs7os/pjKAem+Js6ABPw26e4i GAZA== 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=fcoRloCPmi4XS78EAbEHMzgSS7XSicgRUWm4vz3UI28=; b=jJrcCAlv/BNNJSNkbM+SXTNiTh17B78NI5qJpXTC85boz+s6iCw3DUaAhDzMvJxV2b rPO1SQtgqH32iWUOoyxrA2alXboo4p++Z9VL89rP0tTHTzyOotymru0DkL24B7qTnYTA 29ww47E+El57VPNdX9FJA9Kzaef8/tledO1XznllB4W1x/fW7ljfwMi7l16HO0df/Kml iB84No/rO9J9io8JDNq8vj5lp/gBLe5bgBTz0B8fjXOhcwlBPQjMKfQV6u/AuIK1lKr7 iYT89IDqx/vcnSErlfW7mylllQmkMUNhk211XwPH7j8gUzhiC45Gl0QKbbWc9bAcnz01 6lGw== 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 a1si2139512pgj.143.2019.06.21.02.54.40; Fri, 21 Jun 2019 02:54:55 -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 S1727159AbfFUJyI (ORCPT + 99 others); Fri, 21 Jun 2019 05:54:08 -0400 Received: from foss.arm.com ([217.140.110.172]:55828 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727145AbfFUJyG (ORCPT ); Fri, 21 Jun 2019 05:54:06 -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 C2E0214FF; Fri, 21 Jun 2019 02:54:05 -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 398F73F246; Fri, 21 Jun 2019 02:54:03 -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 21/25] mips: Add clock_gettime64 entry point Date: Fri, 21 Jun 2019 10:52:48 +0100 Message-Id: <20190621095252.32307-22-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 mips32 specific vDSO library accordingly with what it has been done for the kernel syscall exposing the clock_gettime64 entry point. Cc: Ralf Baechle Cc: Paul Burton Signed-off-by: Vincenzo Frascino --- arch/mips/vdso/vdso.lds.S | 3 +++ arch/mips/vdso/vgettimeofday.c | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/arch/mips/vdso/vdso.lds.S b/arch/mips/vdso/vdso.lds.S index ad9f2f2c0c97..da4627430aba 100644 --- a/arch/mips/vdso/vdso.lds.S +++ b/arch/mips/vdso/vdso.lds.S @@ -96,6 +96,9 @@ VERSION __vdso_clock_gettime; __vdso_gettimeofday; __vdso_clock_getres; +#if _MIPS_SIM != _MIPS_SIM_ABI64 + __vdso_clock_gettime64; +#endif #endif local: *; }; diff --git a/arch/mips/vdso/vgettimeofday.c b/arch/mips/vdso/vgettimeofday.c index 48e1ab32204b..6ebdc37c89fc 100644 --- a/arch/mips/vdso/vgettimeofday.c +++ b/arch/mips/vdso/vgettimeofday.c @@ -29,6 +29,12 @@ int __vdso_clock_getres(clockid_t clock_id, return __cvdso_clock_getres_time32(clock_id, res); } +int __vdso_clock_gettime64(clockid_t clock, + struct __kernel_timespec *ts) +{ + return __cvdso_clock_gettime(clock, ts); +} + #else int __vdso_clock_gettime(clockid_t clock, -- 2.21.0