From patchwork Thu Nov 2 12:07:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 117810 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2079575qgn; Thu, 2 Nov 2017 05:07:45 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TU/4XQFgJie62X90daMTURAcYQtNt0ymspvxSg6qS+R1D1SQomfWPF/KNstlHTzHD5yEqw X-Received: by 10.101.73.136 with SMTP id r8mr3330701pgs.411.1509624465308; Thu, 02 Nov 2017 05:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509624465; cv=none; d=google.com; s=arc-20160816; b=ehycQUGqOlkYF1GDOGJKuIe7ELJkdgMF+2qAiYjE/wqj9OpxPo6QzJB/AaSzTXBHAG SlvZZEsbxzl88Siw7e/FvCCTlWlZmOQtoB6HbpDg1wu2RqydbgYEbuuLWKgmjVFnSzvu 9FefpYqO+pJaBjZYCVFolUjadpXI2pBx9IKs9PM1ESZ5/TURWqfeODIIu4NxJx1U2BI0 VcuR5H6ztHN97wmkDDqcdivwJxoQ6QcS0kMHc+cenPaJdhbNZaPTUnJ23l/pSieD1mz4 t8xYU7g4LzW+HPG3iBJWzsJYNFq6E1tF7OKZY2hepVyqw1r67OMj7bJQmqCXejKeRWZt zNag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=AsiKX5n+75dpOTCAwfS+qyBXSHYXrrZVfFeEHasem+M=; b=HBWMvnlO3IhbSA0Ucf8uer5YdxW4lheozG0u+VgMvCp4BbimSJ1RwF878IUIzEZMGJ OW9kFpx30SlLUTBt/ED1qIy1ARPwSmEuEvWVhTTkxnargwCAMzWd4+TG18Qfkep0s4yV eNWZDTLYZrrPepzzGO1wB7NZu8XeDSXgy6uH2PgNQ1jJ2z/Sv3dgwfbJRivPkLrlVD/v SJvjMbncOBVfXHL3+G+HBK5dV1kO8Vpuv3SRs1K6DnnZ3+zYptTUOGudJ2a+lWzYf1Pw US5FE6sMq96dlrehuxIMG9fFQOz0p+X7Y/imjIal0iV8pBBMiD/QN9fgMiN1qVKoNVlT pRgw== 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 f64si3649388pff.49.2017.11.02.05.07.45; Thu, 02 Nov 2017 05:07:45 -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 S932833AbdKBMHo (ORCPT + 26 others); Thu, 2 Nov 2017 08:07:44 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:53368 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751324AbdKBMHl (ORCPT ); Thu, 2 Nov 2017 08:07:41 -0400 Received: from wuerfel.lan ([109.193.157.232]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0Mhqzr-1dnUST3ILD-00Msid; Thu, 02 Nov 2017 13:07:18 +0100 From: Arnd Bergmann To: Jeff Dike , Richard Weinberger Cc: Arnd Bergmann , Thomas Gleixner , Nicolai Stange , John Stultz , user-mode-linux-devel@lists.sourceforge.net, user-mode-linux-user@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH] um/time: use timespec64 for persistent clock Date: Thu, 2 Nov 2017 13:07:02 +0100 Message-Id: <20171102120716.442649-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:IPf+37wseFrcIzBKvSHresKEoRbgBYhPrS9438DQyzuQdUQyf9k kZ8yzt/dyzYQOKG30cc8y2oT7KnL6Elgw1SInmR32OV2HAYxNnbvszTOH016bPA54RFHOb2 E4eYV3gACWTcd8Tpo9h6QMod7aN5BaLONQINHwGpz9zRaGbURueeZj/h3LlewopAPLXlTM1 YZA24uKdgLBozaDKe47Uw== X-UI-Out-Filterresults: notjunk:1; V01:K0:9o6Lb+lPiWs=:6NdzXgLVs8jaPoADqnZkSb rYoLtipdJIl/aDt9KlqpYNso/akmv+7jaMBGFQgrzhT06zIPdG8n63Pmu2MbM+dtNE8nc1/kB hehMTMWAP720w4v9vxnj8TWOaHyi8y0cf0lxuyG/lw4cJvSoBOgQ7wmI3kBMh7GzhtV8HmR4o HUxBkCDbAr2yg7yY/HUJNvvWeP//TdfgGi4dVckakq0NcEUyZXBWOO7p3Ol9KVgoYChWOynD4 ADdVX3Zo3E2zN7ZZW/Z01wrlO+1o8c773sztR8hQcAgVhmFnXBrq7P9IuzaVm3Diz6x0ew/z1 3eqdEkEVUbLNUTaOFXZCmO6wrdk3bxxdSByv53Ce5boThqnYuRCXO9tjDYjFEvpm0ijQ3yV+H Cs2vZeoa87L1AExIg+3y1SshRruN5nl67+pRKtAm789eg2mJsfW+B9bEpx9JF/zmMRMJU02W0 sZiIvRV8CXWjUU7JfFZNrWMJFJgpMlYxmH1myR5Uc7/scnFCVXA7gNdv96mnzrowAb/6O8q1h 0yRe/IEDtZ7jQDbC8Jre/TEN3oGsS2MoqUKau3pP9esdzaNWiL3dR/jfOIYexw3s9Ky/6RER9 Ts/blzf8QjBgFZPO6lxgHpUCmWjRjOXPMPSuIMwuwy6HV7eLFHu6CSX4T5h9RA2romX36esFw pkuyEal7kxPn9Bj/PP57thzVdR8O1vdqNK/RIz7IPkhTt5tIcWeH7nW0gMPYvvmAcnSHZ8P5r RwpOCAWWoEHNbX2OJNVqJeh3AhQ8C9mxuVQwow== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This read_persistent_clock() implementation is the only remaining caller of set_normalized_timespec(). Using read_persistent_clock64() and set_normalized_timespec64() instead lets us remove the deprecated interface in the future and helps make 32-bit arch/um get closer to working beyond 2038. Signed-off-by: Arnd Bergmann --- arch/um/kernel/time.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.9.0 diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c index 7f69d17de354..052de4c8acb2 100644 --- a/arch/um/kernel/time.c +++ b/arch/um/kernel/time.c @@ -121,12 +121,12 @@ static void __init um_timer_setup(void) clockevents_register_device(&timer_clockevent); } -void read_persistent_clock(struct timespec *ts) +void read_persistent_clock64(struct timespec64 *ts) { long long nsecs = os_persistent_clock_emulation(); - set_normalized_timespec(ts, nsecs / NSEC_PER_SEC, - nsecs % NSEC_PER_SEC); + set_normalized_timespec64(ts, nsecs / NSEC_PER_SEC, + nsecs % NSEC_PER_SEC); } void __init time_init(void)