Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1307426imm; Fri, 22 Jun 2018 14:13:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKlhUOtXMTGZoiec+wwolACxiVsa249WF/TB5xqP1h1OZ03SPRAvheMY6vAEiUzT7UB1Onc X-Received: by 2002:a17:902:8f82:: with SMTP id z2-v6mr3185609plo.203.1529702004611; Fri, 22 Jun 2018 14:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529702004; cv=none; d=google.com; s=arc-20160816; b=H+dF+xO7EHzLgI1HYf5rO6hMpgiy5TUOq9CT0M25IMACXliYouKfEgPO2J04haadiE YRYeu28wr3idIjrl23+ZuQlDh7PWEsPZ1nfbwFJ27pr+8MoYBNadgMXMYqKESyWnJZQs w0TQr1fyyWDQUSX82eYYPkk1TsnlPAXaqJnyPkHvqH+IRjpw99IhimDhPmJnNzvwsjql UVEQYbJoFQoCzkceF+wP2diVLpngEW9eUKRxy8sfaU99r13E2JCdq6LpFL81eN+Y6fTK 77ThyQvtxOQ6q6/k46uzlyAF2EQ7UI4wWhfZNHfxgautwpN5m6X7I+jND8tHdV/mXEKF 1tsw== 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=6qMFvYYk14XIIsB/LlhGnK4BgmSkiulfZWWcxdQJID4=; b=xzQBEs0wCabjrcm7ehto6WC9w1b5+lI3TwUHznNE8gslqH2SmR+tqEkKbQicSNRHUy 2ivsDzbMyCaaiB4HFZ8OLnGYo8pjOJstwEbZDca4Z4TqzyoOTJfTRhWAgmlvsCDXP5B8 DK4qjULrEmRBJopdSsUTHz7ObYAr7I9QJjb51TP11zuFo0RrbDK7F1yG7xvvcseTZikM 9r7xioBr8y5Jpj+r7tVSUT0O02CnZl+eihISSD/4K/mxsB6ryBj7T7+FERP2OQ6cfKnI vp+6mEcPn4vW1mVm904UK1dRpgGTpmnnqY3erJbZBX6JEjvi+8BY+rGhLx9UCwSdrFVt zDFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KreEbtrS; 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 k2-v6si6562826pgc.321.2018.06.22.14.13.09; Fri, 22 Jun 2018 14:13:24 -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=KreEbtrS; 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 S1754435AbeFVVMc (ORCPT + 99 others); Fri, 22 Jun 2018 17:12:32 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:52914 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754178AbeFVVMb (ORCPT ); Fri, 22 Jun 2018 17:12:31 -0400 Received: by mail-wm0-f65.google.com with SMTP id p126-v6so3435330wmb.2 for ; Fri, 22 Jun 2018 14:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6qMFvYYk14XIIsB/LlhGnK4BgmSkiulfZWWcxdQJID4=; b=KreEbtrSnmxY4GhH2+MXJld06FqilhzkXqSCAHatFPG7+xup8FqkKTF4d/YpJNtaiR NH78B5wkBe8ahLDAf+7cwN+27+K1azUnjFWfHZhqKNEn3BKqHM5HArqEweW6JMRSKKyq rO28t4tDTpG0rq3IZLShFazX/KGFd9LWKDnbE= 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=6qMFvYYk14XIIsB/LlhGnK4BgmSkiulfZWWcxdQJID4=; b=Enz0D54W6+sC//oTY9GeVEo/zhm1+kb90lok24jVp8EPbvHtJgklfhOSG1/BAMnnR8 aiBUv5MtyukefZKnyIfdaKwhEj6LQfAXbNR386hmos48RazqQZWT5+XnrQD7292fhpY2 t2Q35cgwo5nmaDpCEKCu/GIbYUUhDpXftXVn+3WBpWtWlOu1KDUSyV2skR66wxyP7clS SdWiAvlvKw9jA7kouyHeqOu+uyVZQ7ybadEaJNZ1EKZKzs4QAxLnhEjEotOEbwDUzDRV om6K6vQwTtsL8LE9dyk+SdPwcGOx4NwlZrkr1jvBYt0j5TWkgSUFi5bbi/qOLXcQWykS SUHw== X-Gm-Message-State: APt69E2m4bj3loIQXBSNoK+pslX99amcRv6KV05pNoSCykMvwQiqtdAm uib2+3GJltzvBYbZuM2sK9MgHZLTcaWoTR5DRozFUg== X-Received: by 2002:a1c:da4e:: with SMTP id r75-v6mr2801626wmg.64.1529701950062; Fri, 22 Jun 2018 14:12:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:4088:0:0:0:0:0 with HTTP; Fri, 22 Jun 2018 14:12:28 -0700 (PDT) In-Reply-To: References: <20180604133421.19559-1-mlichvar@redhat.com> From: John Stultz Date: Fri, 22 Jun 2018 14:12:28 -0700 Message-ID: Subject: Re: [PATCHv2] timekeeping: Update multiplier when NTP frequency is set directly To: Thomas Gleixner Cc: Miroslav Lichvar , lkml , Richard Cochran , Prarit Bhargava 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 Fri, Jun 22, 2018 at 2:09 PM, Thomas Gleixner wrote: > On Mon, 4 Jun 2018, Miroslav Lichvar wrote: > >> When the NTP frequency is set directly from userspace using the >> ADJ_FREQUENCY or ADJ_TICK timex mode, immediately update the >> timekeeper's multiplier instead of waiting for the next tick. >> >> This removes a hidden non-deterministic delay in setting of the >> frequency and allows an extremely tight control of the system clock >> with update rates close to or even exceeding the kernel HZ. >> >> The update is limited to archs using modern timekeeping >> (!ARCH_USES_GETTIMEOFFSET). > > John ????? Yea. I've got this in my toqueue list. I'm going to take another pass at testing and hopefully send it your way. thanks -john