Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3417180imm; Mon, 4 Jun 2018 03:19:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKImXgjF9vCU5op1gvRaxR3qbI+RhV6O1rFJwvTbCx5vlsD6zJKsAnwMskG9k6aE9qXfkQ+z X-Received: by 2002:a17:902:9349:: with SMTP id g9-v6mr20636534plp.375.1528107567764; Mon, 04 Jun 2018 03:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528107567; cv=none; d=google.com; s=arc-20160816; b=fuGRZnqVzHq6Rmdawr+ra3lstTp0iW/nUSXXDSXUEp8r2hgMB5APekuV5FvfHHpPCe UmXCgpnW+hKDqScse4x0oYcVaKAe1KboRca7ypBtd39z2Yjxq22uGsg/r1SF9JX2RkUx nWOGk+Vi+Oqi0GyBaNJYtRUy6doi69TrYBNyhsrzVEA511i+Ker6lJ3aSVtDjfz+xLTR nt5Xl1B7N+VkEg+VwGJw7ihTjknCQT/vIc4SsRkJynEILxvMl2v0ocHRplcoWqqZE1lx +ahS+faGDEWhMXiWa3YAtDk4n0baAtP3/cwRrF46mSoSpdgZOwK6XW/bC3xd20may2YY YGsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=dm44jO67YyJCDRk7mTzw7rHWKxAIsQQC4EPmu/FI9oc=; b=UjhD2hfF8yeazEUnOjyIZtmAf0gy9GvqM0GbvZJMawDzDkmrvENTAN6Cb0kdvE0cxM QNH13edYohxOHBrz/xwjiGmQflnpYxd7u2Ram79MHuwMnKKqpCAv19hMdcGj+DRounj9 5/UlCs1q9/CnTL0Ojt2eq6ZUQyZPeXH7uernuzlodmbubpG39a0mNQ9pQ+0FJfbAVJ3J mAxDdJc+DeFzhleRI2714SGVkD5gNOediy3z4mgQdONKOasz9TrlJz67Y5qx/7WJ+Sap QXMepCeHhRUONkEtw/kqrBmtii2RmjduWiVis9bMVC9uROASE+e/PLj1ngYi0HdfHCpv SM3w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3-v6si45169594pld.116.2018.06.04.03.19.13; Mon, 04 Jun 2018 03:19:27 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752131AbeFDKRo (ORCPT + 99 others); Mon, 4 Jun 2018 06:17:44 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:56974 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751854AbeFDKRn (ORCPT ); Mon, 4 Jun 2018 06:17:43 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4DAF1406E966; Mon, 4 Jun 2018 10:17:43 +0000 (UTC) Received: from localhost (unknown [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 43EA32023580; Mon, 4 Jun 2018 10:17:42 +0000 (UTC) Date: Mon, 4 Jun 2018 12:17:41 +0200 From: Miroslav Lichvar To: John Stultz Cc: lkml , Thomas Gleixner , Richard Cochran , Prarit Bhargava Subject: Re: [PATCHv1] timekeeping: Update multiplier when NTP frequency is set directly Message-ID: <20180604101741.GB27828@localhost> References: <20180529105343.26870-1-mlichvar@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Mon, 04 Jun 2018 10:17:43 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Mon, 04 Jun 2018 10:17:43 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mlichvar@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 29, 2018 at 10:42:05AM -0700, John Stultz wrote: > On Tue, May 29, 2018 at 3:53 AM, Miroslav Lichvar wrote: > > -void update_wall_time(void) > > +static void timekeeping_advance(bool force_update) > > This is kind of a nit, but mind switching out bool for an enum? Using > something like TK_ADV_NORMAL and TK_ADV_FORCE? > > > +void update_wall_time(void) > > +{ > > + timekeeping_advance(false); > > +} > > The enum makes usage like timekeeping_advance(false) a little less > opaque to the reader ("Wait, don't advance? Let me go look at the > function"). > > We got bitten by this earlier when we had the old > "timekeeping_update(tk, true, false, true)" usage. Ok. That make sense. I'll send a v2. Thanks, -- Miroslav Lichvar