Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp49160imm; Thu, 28 Jun 2018 14:40:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIFcX0vwA5mBeyvaDLFCA7q0co/2PzI6JjHk+nYPWxRT7Dw/TfLNcwBka+v2b/UAJZRJFfL X-Received: by 2002:a63:7847:: with SMTP id t68-v6mr10140622pgc.329.1530222010242; Thu, 28 Jun 2018 14:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530222010; cv=none; d=google.com; s=arc-20160816; b=Jme5coNRgh3BZuFUge+CremJj/2hmkTONC5CE2AtPYLpbvee9qP6eZ4l/7tc6vP5AQ DAYXCr+/0R1O5BP4Dfp3F1opNxRvEFWjs2nyBfS7wP7Kclo+0eBf6JaWqW2H19IZ9tbM lNpHwnP7pq5vXqSmQ3EYXHuij0fxVDu5SzeIVWcxKUF+mvtzPyySKTJd9tJimsyVPgqh weTvIg2X2xEeEXtMaM79b7X9Up4K2P5HUPPN4x1U71pHexkVvAqwsRbQeO7DcdtqgSi9 bENDT50ifHNT4BPitmzOy3iGtVWlc4HmSdjOuqb+1WAc0tW+N3cJVvINU0ZekDBRgIJo na5w== 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 :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=e2pYU8liiPL9V9Nn/6SvHZMuKNe009daXkOb/03LCxk=; b=0UFjIGfvI/DqeYyRyAwl3QTd58GARG5xH4sxpFJ/Y42USdT+Zxe/TXt631aZ2yaiHb 5E8Ev9pGY2Rm4LLhLc6dTQJZ1afF4v7R1eMxGnSYRySBOXejCoxJ0g4URKH/RRFM37Pq rUpqPlynw6r3r5koSlkc+BN/carXFYpbic/B2yPBqrydej+6rPFHtyBA4YV1FjvWDT8A j0xzzn39MUO++TQMqOJBlZ61FkhMLBClHvdcPC/PwEnf1esDuxgYhiWp1aLqHvghJY4O 8UP5GbXuBfE6vEIn3H8UegfiQfAP/9fydAXVO26qFscgMf4JRp30oKGnLmkabWhFWcZP TOlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BV+UUIHm; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2-v6si6787913pge.372.2018.06.28.14.39.55; Thu, 28 Jun 2018 14:40:10 -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=@linaro.org header.s=google header.b=BV+UUIHm; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966486AbeF1OPA (ORCPT + 99 others); Thu, 28 Jun 2018 10:15:00 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:35381 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965894AbeF1OO7 (ORCPT ); Thu, 28 Jun 2018 10:14:59 -0400 Received: by mail-it0-f66.google.com with SMTP id l16-v6so12006011ita.0 for ; Thu, 28 Jun 2018 07:14:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e2pYU8liiPL9V9Nn/6SvHZMuKNe009daXkOb/03LCxk=; b=BV+UUIHmlpwmRHojwFIHn/EfoztkreRQr/AuSVsKegw9azgglPZw1nH5qrOipLicxy H04CKnTOQBWee6cANc3XWhqate4cBFJITXl+M6BpsPbeTxRBdbOnmGeoM8K7aDUse2rq LP4KbjuVrN3wLFYYw81QuyutJbguMW7W+Fk1o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e2pYU8liiPL9V9Nn/6SvHZMuKNe009daXkOb/03LCxk=; b=Dlz1UPV+nnOWxOVIu7ruGcFZVtV8jY07WhSJYfn+9849ZZwOZE+SJtK2XhJuvHLD62 lZ7BcjLd3lJMO7Pe5K0ZPSt6SNHu0fiFFlXKs/9e2r9hkPNCoWkGbLVlFco4GvFelH1a lsiikxjlN0AoKOBIRtqxPo90Hvhc+h53OQlQdt889v13Gk4ogzpkHV4NwRem+PiULUtm 8+6Dpuar3n/bpo74vKiKhGyA2mJ+s680bzkCUmK/OLfYVuZDUcuNZFqj5zSFXTpFcCVQ rm30aNfyYLpS67M14+hv9KVOYT0ThCEExFyh5WOC3Nrm/EqgHNK4uK4GcTXFRBLhsUCY XRoA== X-Gm-Message-State: APt69E1kRbG/M3xgWyFUPGYPquXhAv3uJYKzWAtN+vBykCOaspUz5Sqw q4wlt9m866nXgp2argl6D8SAGHW/AEoMMh0ECJOij7pJ X-Received: by 2002:a24:5746:: with SMTP id u67-v6mr8520666ita.38.1530195297173; Thu, 28 Jun 2018 07:14:57 -0700 (PDT) MIME-Version: 1.0 References: <20180618142352.3556062-1-arnd@arndb.de> In-Reply-To: <20180618142352.3556062-1-arnd@arndb.de> From: Linus Walleij Date: Thu, 28 Jun 2018 16:14:45 +0200 Message-ID: Subject: Re: [PATCH] power: supply: ab8500: stop using getnstimeofday64() To: Arnd Bergmann Cc: Sebastian Reichel , Lee Jones , Linux PM list , "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 Mon, Jun 18, 2018 at 4:23 PM Arnd Bergmann wrote: > getnstimeofday64() is deprecated in favor of the ktime_get() family. > > The direct replacement would be ktime_get_real_ts64(), but we only need > the seconds value, and it seems better to use boottime than real time > to avoid unexpected behavior with a concurrent settimeofday(). > > ktime_get_seconds() might also work, but it seems better to use > boottime than monotonic time since I assume that the charging > process continues during suspend. > > Signed-off-by: Arnd Bergmann Acked-by: Linus Walleij Yours, Linus Walleij