From patchwork Mon Jun 18 15:00:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 138985 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4055627lji; Mon, 18 Jun 2018 08:01:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKq6ImcUfpYu4DTXxogGYUquUxZ2wX2q1kA9DXBiOlzjiELViB4WqOKZOFiX0UnInMOSqfA X-Received: by 2002:a65:60ce:: with SMTP id r14-v6mr11339467pgv.41.1529334091064; Mon, 18 Jun 2018 08:01:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529334091; cv=none; d=google.com; s=arc-20160816; b=A68fm3gsWTQcCo7ePXQCUc3Zu1N5o+s/tPnmlg+xJly4bnospbFzj7LqDr7x37b4ty 5n7sqVZqcZQeAD+LNeuFvTBr4Rc/7VAX8LzrSQqJXogGzQOgdhjFiebT5sxMgDF86efK VW4a4qwazb6PQoD5dICVbuNuPRNmGBLbzW8Msd8gfPcOrmdN25SnydKECkhecA/oFZCv UuNZ8zYiaHGJlHc14YI6iR3Fk36munYebtmUCpBvuwQyc/6eKZR6gFA7XTx6YbCLQK7P hDsrdY3VkYrD3AMmhGopr1Z7bcfoNIxUq4WiKecPFvua+KhRhWg+ejKu5hr2xqe5TIb5 +E0w== 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=3zy4HhFpk5wNwvtSwjqpgxxO9sgqqnrfUVDX8DtKtcI=; b=BmNwFRFJ1cDPwJDKwlPECD1ZESwscK31esqx7fD4lyzpqULU4LuCHaTnlvG5m8S+Dl GdT/WWPmABIksgHpcmt+DahxCtXgJQQ+SzAeEvvXzSefuuwTIJs5iZsVNb/4Sl2zOk7d ROcd/WptXuTh9I3RNN+yPWzLgPgnobD1SXnrfVWHjpxsKJvIcFW6pVyYfL3q1x7g6zGt gIaAT1KnjriB2OgJXo0fhp/FZnySRPoXW85tmw6tLtSoM6okLLhm4qYSAvyHSJCFvrG2 xRfQ5smndp3Of75LEQaz2KZDfP0QubuS9kD2akM/Z0x/TE0xcTmwWrLMFBQaimXQBOzh wzbg== 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 a68-v6si14834815pfc.106.2018.06.18.08.01.30; Mon, 18 Jun 2018 08:01:31 -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 S964886AbeFRPB1 (ORCPT + 30 others); Mon, 18 Jun 2018 11:01:27 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:58829 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964921AbeFRPBY (ORCPT ); Mon, 18 Jun 2018 11:01:24 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lwzrl-1gJ5Ry2bIP-016e7E; Mon, 18 Jun 2018 17:01:15 +0200 From: Arnd Bergmann To: Andrew Morton , Thomas Gleixner Cc: y2038@lists.linaro.org, Arnd Bergmann , Dominik Brodowski , Cyrill Gorcunov , linux-kernel@vger.kernel.org Subject: [PATCH] sysinfo: remove get_monotonic_boottime() Date: Mon, 18 Jun 2018 17:00:38 +0200 Message-Id: <20180618150114.849216-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:Q2e3/BUEmgOL9AGcI1VDjSZbKI35xoRwRN8xBJ2k1qF1dztLA0X Wp5qoIN0N7zy8J/GnQZecqC0rroxkEbc65TyMwchRSyDpgEDgCRId/fcgllK1VRXncUopA5 R9vHno1+4h47mbrcsq0dQP1abuaAC3TQ3qhe7QgC0dmVPBzV2C3RvzGbjUsbcGvWfYSh1+i zkD0LtVYgcXfRDRVAA0kA== X-UI-Out-Filterresults: notjunk:1; V01:K0:mWU2enx82Ds=:1D7pAmVRLRvjNMulUff58b a+ar0rXfoC/F5ymLSRvW6s2o5k3cmlvvFwxX/9fd6oikyatvQraf8jd5bphXpXKz14YTYM6Nj d05w3bOcaYAc5Zq01kICCbnFE2n+2bHhKPjGs5vPcxEtQo2DyebcjemgpfP96YsyyR6xSWGEz USkYZHbbu75oNJ3cs/dDCWWT4+y/Ih2J+zQt+8M8vA/5mewFUYhjMUPi/2Mueo13JYUVEa3sj 6iuULF6T1fvUf4ytcuxVhQK2hxOs3ah61aGiPuduiqu9ZPDjwaMHQ/tWJFZTkDahFEHGu9KNO YJ1aRKI2pgP17JvVzBeako/AU5m+P6/UbmQ2TyVQ/iQKlVXI9lUdm0g6GQxM9yrjuI46gHyOg gtBe5nuMXiojykuetaM9Nco2YOeHf0BM4nAzo8eiQKAJdE1JRZxNs6mxpH7zb3k6QaGh9XA6K sanke63FRwtWQYrnFglOUW9rlut/xXVrdKFPpK6U8mqok+Kb4F4w8LyKh+M+LLJzcD8waOu/D /noNq2T8lFNmp7Oqypa+NhUiO+dayy2FiMp8sWmWu9VR/40OMrvJJPhHGq/jAsMr/9uHs8atf 6z+Smy+UHqdIgtyOHeBEbS8jtV5COZ6cWS69HTcji5wL9qcgXU9rg5zqfdNrc1YAy0oBki4s4 SP3OBLjuDYUlSgjaJxVCFKU45Ay2cuetv3B5SXuCJ1D7q6xHbayDXf4XXRZ/fg37Y/is= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org get_monotonic_boottime() is deprecated because it uses the old 'timespec' structure. This replaces one of the last callers with a call to ktime_get_boottime. Signed-off-by: Arnd Bergmann --- kernel/sys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 Reviewed-by: Cyrill Gorcunov diff --git a/kernel/sys.c b/kernel/sys.c index ccaeffa2171b..24f838da8ca1 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -2574,11 +2574,11 @@ static int do_sysinfo(struct sysinfo *info) { unsigned long mem_total, sav_total; unsigned int mem_unit, bitcount; - struct timespec tp; + struct timespec64 tp; memset(info, 0, sizeof(struct sysinfo)); - get_monotonic_boottime(&tp); + ktime_get_boottime_ts64(&tp); info->uptime = tp.tv_sec + (tp.tv_nsec ? 1 : 0); get_avenrun(info->loads, 0, SI_LOAD_SHIFT - FSHIFT);