From patchwork Mon Jun 18 14:27:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 138970 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4021507lji; Mon, 18 Jun 2018 07:28:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJTbLL/H8YqukH9L+3/vPoFoQySH60fUEgvktmg8yc0oR6x9G+5FQoHpDZ/GL08TcvH5Mo1 X-Received: by 2002:a63:7205:: with SMTP id n5-v6mr11214693pgc.337.1529332134151; Mon, 18 Jun 2018 07:28:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529332134; cv=none; d=google.com; s=arc-20160816; b=ik+mJp4g+Dk9kXylqUNaFsWKMF3i0krE0qtm/krnCpHw3y5JKySyN4/Qtopmhn5dJd EQGw4fJTM2h1HLI7yNkXo4+3i6VkZk1qntWkp58F44QS4/tJYw5YtwKN/Fa7MVxCZQu3 IRF+h2DLjDc/8QmJciFPXqg6bEqaI1Az0OcL2ZbNCM0YQ6UUfdUEBVWWy3giiA8IAgqn t4JcZN+j9mkUAVfX6WC2Ei7FoipLF69cgMxIlfwpUBTPw/g1P9wS1cp+0Ma+em7Rc8SB J1JyLJzX+m+7JtRmNUSmJm0meHoMaWhW6bfPBUTD+KK8cjFgnknwZS8fY54JT32GjF0c 1lnA== 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=FyPVqNzOUrNHfpFrdtna03ZKe7Jp4ADsudYtAVVh2ns=; b=UtMVXtIePdnx1fveq7thcHkNqFgLvwKfUQQSVw2G24rjZmXtjtUP9oBW1Qw3TeMIoJ kmwe8HPk90/QiAXexfdRb9JJIjqluCFIF3GcCqNE8gCui+QU0Jq3GrCs60d1sWoSMVpy n2UtmlfJ2ysTsBCgiidmVpIK0bX9kB//bub5XiNgvjm2ron9Gh5jkxFMOTipivgfKfDq l/XAgVuvK4fV+F6v45Ncism0sb9zCuPUi2GMnmIvvaZkPcGU1eMDmURQmL2Z+kjVBnZz quLQDXURaZDwGrogGkIh6FJnVIPGYXsixjSPQBo9i/x2/4l5x6qb1YdNYuuVk4qdu188 vVmA== 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 e7-v6si12212102pgf.317.2018.06.18.07.28.53; Mon, 18 Jun 2018 07:28:54 -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 S935109AbeFRO2w (ORCPT + 30 others); Mon, 18 Jun 2018 10:28:52 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:43265 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934678AbeFRO2r (ORCPT ); Mon, 18 Jun 2018 10:28:47 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0MhUQs-1fqJuV3AkU-00Mcb9; Mon, 18 Jun 2018 16:28:41 +0200 From: Arnd Bergmann To: Greg Kroah-Hartman , Pete Zaitcev , Arnd Bergmann Cc: y2038@lists.linaro.org, Kees Cook , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] USB: mon: use ktime_get_real_ts64 instead of getnstimeofday64 Date: Mon, 18 Jun 2018 16:27:45 +0200 Message-Id: <20180618142839.3699997-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:fU8xOp75BhWoz9TBb4HSYnkOo83bT5fQPfIfgdcU9FnrZ/G4LLi Ie0Ur1+SvgtWq5SbVoBHD9UtCNjJUFddcCLj4aNMT0pm7jWi6zEMFDDHXIKIubqffDb3Se2 BpHbszReH2B2cWO8OZmZCDFK0bI7P51lOAPhhEgE/XYiVKs6hEV+JNlkrz4Zd8QIJxyFrzN vXGzXWVdWK7adKn+ThJ1g== X-UI-Out-Filterresults: notjunk:1; V01:K0:gyVLhTlpfKk=:MqCqiGn9NVmuGxTHw2fMEm Ys3OUFoCsl4mYW4bSMx7vo+/2D0FvJxe+toZtODT0DTh/H9SViQBcsLarlV34zcTxaGidXK7G rU0AE9tNtJHxDdBwAYF2s+oXXJggAoEGmH8pkCVYU0QvgQ73X+p8UPtfE+VnDwNQ0YcbfoVXE Cvjxd2B/sz1jsOZ97OwEaxU4Npa7fSwxERLezv+rhb2cPQiKwaIGMKz+nHIGiHTnW5XnqWFDo f47HgPoHOzOtEYxhMf3kH2T0ky7tSyVfemRBhU/6Liehg2WBk7Ld355vMl6pg+vloNkQ2MxeB d6GTjkW+PApI2BGoncz99wM///8KPOmIYeTcZxXwWX5QvW7BQQod9bbOQEULyCXfJ4/OWs+ha 1AXl0qG8Sw7E4NELzM+68oCSf0qrKnBfq1J0pWXmOKI7PLUJrTwgcCYV227NiMREO8q3wtiZt lAKI3zCQUVh06ibsb8EtdxgPIeDCXAsP9B7KjY5ytMMbYzqXLfCqoO9ae5iLxwuViw3RebqWx O08KH03FsGG26sDn11IP7ZmtaQIqI+6sxfah5BFnxdokJW5/Eou0fnQ5w4bfuGp1VjLTZQUPR unb0cWz7TM0MHVpg5dXCA7R2RWgn3cPV9nFGaZKGp40vs424rVFpb0H0BZ2VXIAAg39sdloCT ELe7luOiBfLImPWPDQwsM7TRGzPHKQBkInGVdsyFX7QwkAae6JfoGQPm8hpdVYKMPJP4= 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 remove getnstimeofday64() to have a more consistent interface. It would be nice to use a monotonic clocksource here rather than 'real' time, but that would break the user interface. Signed-off-by: Arnd Bergmann --- drivers/usb/mon/mon_bin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.9.0 diff --git a/drivers/usb/mon/mon_bin.c b/drivers/usb/mon/mon_bin.c index ad2c082bd0fb..ac2b4fcc265f 100644 --- a/drivers/usb/mon/mon_bin.c +++ b/drivers/usb/mon/mon_bin.c @@ -95,8 +95,8 @@ struct mon_bin_hdr { unsigned short busnum; /* Bus number */ char flag_setup; char flag_data; - s64 ts_sec; /* getnstimeofday64 */ - s32 ts_usec; /* getnstimeofday64 */ + s64 ts_sec; /* ktime_get_real_ts64 */ + s32 ts_usec; /* ktime_get_real_ts64 */ int status; unsigned int len_urb; /* Length of data (submitted or actual) */ unsigned int len_cap; /* Delivered length */ @@ -497,7 +497,7 @@ static void mon_bin_event(struct mon_reader_bin *rp, struct urb *urb, struct mon_bin_hdr *ep; char data_tag = 0; - getnstimeofday64(&ts); + ktime_get_real_ts64(&ts); spin_lock_irqsave(&rp->b_lock, flags); @@ -637,7 +637,7 @@ static void mon_bin_error(void *data, struct urb *urb, int error) unsigned int offset; struct mon_bin_hdr *ep; - getnstimeofday64(&ts); + ktime_get_real_ts64(&ts); spin_lock_irqsave(&rp->b_lock, flags);