From patchwork Mon Jun 18 15:17:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 138994 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4075858lji; Mon, 18 Jun 2018 08:17:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKsDRqxj3x5CeuDPbpBEcJ9YGq/PSxiEiChn07bMG18LamkdZARFAWTR6CrC6bqU0khLUwa X-Received: by 2002:a17:902:7686:: with SMTP id m6-v6mr14716195pll.340.1529335069920; Mon, 18 Jun 2018 08:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529335069; cv=none; d=google.com; s=arc-20160816; b=KmeRrjJUtqg/pJZqW7JgKrNhuWCPR5vnE4/JE8dKRoYrUKpKKN0b8TVsGlohc/CC50 +/71xqrLay+xWVHtCtZtHb7V/I3APAHwkdho76Xk5hAQKWinj+IijOtzxdfo1W0wr8XA +Z9Iuh7jQpzvviUoWnvMjCISbF/VbvgsnT8yOdiCxUoJO+OA6y0bJJ3PE4x38mRZKnkq u9gtENkf5yAErPJj57HCECng1tO77nxryJsoiZ7DMUn+vIEPekBkh9kgWXCBK9sEqdsl yUYm/vjMFf2UBeFe9rgZK1WUfExeMNID8I8mdUC89yIeBbeVISxxb/1GL/RkBKyBsH+p JCdw== 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=NgXnC/x3MmBjzWKbpqPsWHcbR+hVmfE4yrztDDJreZ0=; b=yqj0bOy5wvMj13CW+uu+EAK/weQcpFE/VIeU7x/BLSF5ghJA6bd1u3LpTWkFSJ8ft7 Rc4Ex8IOuGJx5JSdotrQgqZcxW+UlHBgX0drxtYMd4C/T1RjgPMXpl0M9a76eDorPH2+ 3RrYSs7iBiSZ+cMqu3QSSGSEjzXzMm0/jNfKWEWfyZsxyqVkv6kDsz0As13GangnW62z DNmu/kQfs/iF9Jxv+aRLDKQ8VPxDgUiHDzqDCVf+6H+ATXcJGmF+C62MYTtWglIhF/Jz GtG0F4FfWi1elNlhuwxXVaEljCBawncw1KVspMBgAb1KkP30bxPA/qXn61eqfCkphaOs YHnw== 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 p5-v6si14222904pfb.171.2018.06.18.08.17.49; Mon, 18 Jun 2018 08:17:49 -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 S1755249AbeFRPRs (ORCPT + 30 others); Mon, 18 Jun 2018 11:17:48 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:50253 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754948AbeFRPRp (ORCPT ); Mon, 18 Jun 2018 11:17:45 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0MZhco-1fn0Dv1GbW-00LTsy; Mon, 18 Jun 2018 17:17:29 +0200 From: Arnd Bergmann To: Derek Chickles , Satanand Burla , Felix Manlunas , Raghu Vatsavayi , "David S. Miller" Cc: y2038@lists.linaro.org, Arnd Bergmann , Intiyaz Basha , Rick Farrington , Veerasenareddy Burru , Vijaya Mohan Guvva , Denys Vlasenko , Weilin Chang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] liquidio: use ktime_get_real_ts64() instead of getnstimeofday64() Date: Mon, 18 Jun 2018 17:17:13 +0200 Message-Id: <20180618151724.1406034-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:60jBWTqQzoxAdMwvIGDNit/rqcH7vdAaWkJWWHHY2ih0sTAiTgU N8M/IegXuedOyiUpRl7cNT/XxD9nQsuZPOdeO+zktlTiKwpI0yfC9zkR7hIKJ37HqW/9xsr D0ARMtoffG0cRMi8e4jEAQMq4b3jsBvd4dq++LTNvLXi8D73JFA7DXfmkY17y3dEfnFHe3E 9H/YOAL04Si5LMtmW+W/w== X-UI-Out-Filterresults: notjunk:1; V01:K0:zEeuOR1Jq9Q=:Oh8AHbyyLV7DjfsgWy1dJA hgvIM+LXkge++zVulYrUFlAMy+0nsPt6WHbBOSaVSDKwU8gtClvANbH9DI9D7yEDsnTuWzMHX HAPfoxE3Lu5B+DkaW68iEE+zJPSuCqGaM06pr3v0KUWqT+rQoJEzoVyYNXM11TRiTS++rUU1G 6BfyP5PoLNyb01s6hMQ1IlM+wb5vmc+GgCst6D73aaZgWGDUjTZuH00I0QdHiJT1/W9I6qFiO D59iqXTQkdiCGKPCLUpZAeH904MZ6GCYeUxKfsKWDcioz/Blc/J00lj7lMaZ/K8XQsOcjV8C2 INWcnQJkElbeKAAEZqYFePd5nxjmYWpzLaFtQJ9rnkodJyjK+jxHoYF3fvbiZZpK0+DIu0du8 TsSu1rprGi1wHSFwHptZ2F//84FZq2jYkVN5ND8bw0qlAX2/vQYRwMxNCtyJ0QWU1D8bH5du8 kfdJlehPimncFlkMmfNg9J7tgqZoEMY0hg81bs8nzyrfDINxGHnT7q0IO0JfLhc4iHHWEw2t7 1nSVlXhj7B0vXTzDZQro/XvqS9Da97IjHpXu7/ZiQhZQz17O5cB1X1p3Vh8OIbQHt6WQiOJKy KP5zPplPYk+ROE8lSPOeky6cR64j/3l04dGLRBsz6jiJwpAc87wr1CMdcZCAZ9x89HXN8b53c /YMvoDOmR3yH9SZJ1JjgfxXOE5w2RoUg9pkIwsEw/hYDfUqcaBaCPvAbbBaPLF6FfVJs= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The two do the same thing, but we want to have a consistent naming in the kernel. Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/cavium/liquidio/lio_main.c | 2 +- drivers/net/ethernet/cavium/liquidio/octeon_console.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 diff --git a/drivers/net/ethernet/cavium/liquidio/lio_main.c b/drivers/net/ethernet/cavium/liquidio/lio_main.c index 8a815bb57177..17a64044ac95 100644 --- a/drivers/net/ethernet/cavium/liquidio/lio_main.c +++ b/drivers/net/ethernet/cavium/liquidio/lio_main.c @@ -684,7 +684,7 @@ static void lio_sync_octeon_time(struct work_struct *work) lt = (struct lio_time *)sc->virtdptr; /* Get time of the day */ - getnstimeofday64(&ts); + ktime_get_real_ts64(&ts); lt->sec = ts.tv_sec; lt->nsec = ts.tv_nsec; octeon_swap_8B_data((u64 *)lt, (sizeof(struct lio_time)) / 8); diff --git a/drivers/net/ethernet/cavium/liquidio/octeon_console.c b/drivers/net/ethernet/cavium/liquidio/octeon_console.c index 7f97ae48efed..0cc2338d8d2a 100644 --- a/drivers/net/ethernet/cavium/liquidio/octeon_console.c +++ b/drivers/net/ethernet/cavium/liquidio/octeon_console.c @@ -902,7 +902,7 @@ int octeon_download_firmware(struct octeon_device *oct, const u8 *data, * * Octeon always uses UTC time. so timezone information is not sent. */ - getnstimeofday64(&ts); + ktime_get_real_ts64(&ts); ret = snprintf(boottime, MAX_BOOTTIME_SIZE, " time_sec=%lld time_nsec=%ld", (s64)ts.tv_sec, ts.tv_nsec);