Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5013547imm; Tue, 19 Jun 2018 03:42:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ3/tx0APzlk83RS8p3euunCUAplJ9dRCVxTR1kPTGBizpeq+Cph9MnqIXbms3TjcPAm7VU X-Received: by 2002:a63:b407:: with SMTP id s7-v6mr14710966pgf.334.1529404932685; Tue, 19 Jun 2018 03:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529404932; cv=none; d=google.com; s=arc-20160816; b=w4GbQYRK8Z3gW8q1Z3AmlWD1xsaCFi0PSgTHgl002asOWh5FdIUcpQfSOehkXjPcsy JfhnnOTd6ZASjxcrX6ldyXQA0sAvZW2lKQFbmTWLACveRW1lpOdr89IHVFRxSYde+YO9 QepDcoIt38t95skelFWFD9bs9iPmpUKw6xs4Hc2Z5/CaEModxZWlXC+2d8XZa58llREj 1brD28c5tfeuCMdB4NgF9p07rJ+uJGGx+HBPrh5WYPdf92r+sxr9rIw1zSLxi5Ra1rp+ eFjnetIgPsreu43kc0Dri6tRSjy8Tz64im0SZJl62aY+Y1NDjd7DApXVBGygHacByxJa XHXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=BKkoSAI1DVN6hn+s8tCrHDcs7TeyCkhCSnlk1JILdyA=; b=NVSSw3fuP6XRrNr1aT55xvCnjBgDppo8bGR8iHQiR3JjmQ58H+ZR3/rqMdFiAhLbiy auZ4b7qHDHSxOKGh5Roe68WVWiKC4LhWNpJpXYG1I7MGGanL07Hy8LQvX6OrIAIo8Y8u WX6TiXXuQVvE2x+TrVPlkGPwUuSbNS5wykS29BBzkT6Hstdsl1OTVkOaeqetrnv3aUaX AXHxAXrbEWMzFHOxLFe/k6lEJHayDZLYtu83xx5T1fHJgFzE5a1AscGLmA3em34VOB2s 8F69f3JCQ2+gR3QDyh6dE1eZfdkZpoTszrmnjqnG4Vkc5nov3fBGU1kGFwqPGC721M8Y +LSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DMb4V7bZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k191-v6si14191242pgd.19.2018.06.19.03.41.58; Tue, 19 Jun 2018 03:42:12 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DMb4V7bZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965766AbeFSKk4 (ORCPT + 99 others); Tue, 19 Jun 2018 06:40:56 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:33368 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937554AbeFSKkz (ORCPT ); Tue, 19 Jun 2018 06:40:55 -0400 Received: by mail-oi0-f68.google.com with SMTP id c6-v6so17697510oiy.0; Tue, 19 Jun 2018 03:40:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BKkoSAI1DVN6hn+s8tCrHDcs7TeyCkhCSnlk1JILdyA=; b=DMb4V7bZVVwq/7zk8Ypz5zC8CIKzpqYr25r7HbxAFstloACJB0PT+Krosrwh99Jh3r nviVMc9e+6javmItGY+SMMStMytNxD1Tzx+r7VQiy07vj8oWU49UYDO+sqAgib5EzINP GrgkaHSRHL8shHTGwVKMERlkP1sKHCTlR4FcVxKqtlFzp+6XkSZxUu1qCBcrSsKjyzi+ TlczZ/U7FQWWuV7qiXPDKGyTLJIgFaKSHd2dACSAxj5YJkm+enpP1MgEFd1pkO8o3+g9 LNVAvMnuqOdOYhUwLamjusSKmE5zRRSTaJs1+koV6lgjLNxPGUmnGZxBAUgfmWpCl+9j Usdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BKkoSAI1DVN6hn+s8tCrHDcs7TeyCkhCSnlk1JILdyA=; b=Ki7HTmLJQv96/QX1/7iZEjprovO+UMkqzIxNDT1Y938R0XtOTKegvDUMyePMjxoGED MBke2pYv7A4eZgASRZvERq9SM3DgcumzGmyJ5VHQqCTadNvS4UCi4LepUoe4+O26H7uZ avu0lrVnQkrVnJYeTz5BX8JLBSvt3BHJwbPVfN6cUQb82VJx7EUwMlhOPo7Y/w4gq7Av EFQac2dR8wREiZWMxisULJFfMMcvSinwN/qOaH+QLJcRLqj21IbiQ4xk5WDU5EmF4Joz WS6KTNfho1QmboUqRxCNbGy8U6bgDJ/zUlNJczmDTlGqs8ujvCsehN3W18NYq9sEZzlj hgvA== X-Gm-Message-State: APt69E3SIJNY4mkXnkll4LK2fUlb3rBmy5LnCLNrpwtB+/SQ/c7+lt9E k3fAoiH9DksS2IoPjiX8hGnsAzu2yREemqgVa04= X-Received: by 2002:aca:2808:: with SMTP id 8-v6mr9493229oix.235.1529404854186; Tue, 19 Jun 2018 03:40:54 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1915:0:0:0:0:0 with HTTP; Tue, 19 Jun 2018 03:40:53 -0700 (PDT) In-Reply-To: <20180618151142.1214422-3-arnd@arndb.de> References: <20180618151142.1214422-1-arnd@arndb.de> <20180618151142.1214422-3-arnd@arndb.de> From: Stanislav Yakovlev Date: Tue, 19 Jun 2018 14:40:53 +0400 Message-ID: Subject: Re: [PATCH 3/4] ipw2x00: track time using boottime To: Arnd Bergmann Cc: Kalle Valo , "David S. Miller" , y2038@lists.linaro.org, Arvind Yadav , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/06/2018, Arnd Bergmann wrote: > The ipw2x00 driver family uses get_seconds() to read the current time > for various purposes. This function is deprecated because of the 32-bit > time_t overflow, and it can cause unexpected behavior when the time > changes due to settimeofday() calls or leap second updates. > > In many cases, we want to use monotonic time instead, however ipw2x00 > explicitly tracks the time spent in suspend, so this changes the > driver over to use ktime_get_boottime_seconds(), which is slightly > slower, but not used in a fastpath here. > > Signed-off-by: Arnd Bergmann > --- > drivers/net/wireless/intel/ipw2x00/ipw2100.c | 18 +++++++++--------- > drivers/net/wireless/intel/ipw2x00/ipw2100.h | 12 ++++++------ > drivers/net/wireless/intel/ipw2x00/ipw2200.c | 4 ++-- > drivers/net/wireless/intel/ipw2x00/ipw2200.h | 6 +++--- > 4 files changed, 20 insertions(+), 20 deletions(-) > Acked-by: Stanislav Yakovlev Looks fine, thanks! Stanislav.