Received: by 10.213.65.68 with SMTP id h4csp76733imn; Thu, 5 Apr 2018 18:11:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+UzpeRXYbHsOky5CoJTJr9BCsVhxtZS5KmcZHj5JWf9jC6eF8vJotQ8FskfxacoxzgD8Zn X-Received: by 2002:a17:902:581e:: with SMTP id m30-v6mr24139047pli.406.1522977077990; Thu, 05 Apr 2018 18:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522977077; cv=none; d=google.com; s=arc-20160816; b=amHjhhPbTbs+5WOHqneOEhgjroNGCwtbrMiq1mnpPzZSeiiERMwyfLCtUsq1iwqN9Q hoYPwW+DohvCCSBL9W7BmVaVxmn0hb8yXVVgfdOPwzvgYPakCmDDtAeI+lIH7dT7ZKv3 jHe0wfKTIXKaFkco7n9Gfw1BUXOIUCr+Ydv0DLWOoje6JapIEp9e68SJahDw8MeypCWP db5RKt1uWUesbXOY/KHWXymQEM74Ziu2NdJyh7XvCMRYzcWQ1SyaNdA3OW8RgZB4JEKW Sb8wX0FpMzK5Lhhb+5Sef+e5SQKXcMmWl1PiSQpeMbegUE7bg/1le7mvY3buCsxUBNSB gaFw== 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:dmarc-filter:arc-authentication-results; bh=R5S2NIm7tt1ygHJqc1aWglAt9x41hErPCKkaA6OXHuY=; b=VkaYqnQpYT7Cf1iNbe9U0j8dE5Cwl3MO2KYoDwiClxboA4hlr59hObBGAFEeBo4XRV zA7IhYoq4phxxP9+nsHrPnfhiUygH/ejQ/2ZVSp7ECbf86Lwf52njrDz5JmnamHbphxe v9kri0UMi5UPcQKAaT7zSrzF0PdreUUQvdKp4C1We3H54yirJ1BxfNhnzPya3ppxTzWx TBwINXPS3I/Kk0BGg+rAslpDNoXOw7Qb0R+8Hd46swvtL9GX1a3lZTO4aZvwvJgJp6cl VBoKUQ+iUxvhgB22jp9LGPxoBvKy231DcuNvg2WxFQ5U8esMWkChVpgkJDhAryRQ8+An +0UA== 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 a62si370316pgc.296.2018.04.05.18.11.03; Thu, 05 Apr 2018 18:11:17 -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 S1751447AbeDFBKA (ORCPT + 99 others); Thu, 5 Apr 2018 21:10:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:33534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751298AbeDFBJ7 (ORCPT ); Thu, 5 Apr 2018 21:09:59 -0400 Received: from localhost (LFbn-NCY-1-193-82.w83-194.abo.wanadoo.fr [83.194.41.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1581D217CE; Fri, 6 Apr 2018 01:09:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1581D217CE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=frederic@kernel.org Date: Fri, 6 Apr 2018 03:09:55 +0200 From: Frederic Weisbecker To: "Rafael J. Wysocki" Cc: Linux PM , Peter Zijlstra , Frederic Weisbecker , Thomas Gleixner , Paul McKenney , Thomas Ilsche , Doug Smythies , Rik van Riel , Aubrey Li , Mike Galbraith , LKML , Len Brown Subject: Re: [PATCH v9 04/10] jiffies: Introduce USER_TICK_USEC and redefine TICK_USEC Message-ID: <20180406010954.GA4400@lerouge> References: <1736751.LdhZHb50jq@aspire.rjw.lan> <7620417.mBP1cQHt5D@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7620417.mBP1cQHt5D@aspire.rjw.lan> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 04, 2018 at 10:38:34AM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Since the subsequent changes will need a TICK_USEC definition > analogous to TICK_NSEC, rename the existing TICK_USEC as > USER_TICK_USEC, update its users and redefine TICK_USEC > accordingly. > > Suggested-by: Peter Zijlstra > Signed-off-by: Rafael J. Wysocki > --- > > v8 -> v9: No changes. > > --- > drivers/net/ethernet/sfc/mcdi.c | 2 +- > include/linux/jiffies.h | 7 +++++-- > kernel/time/ntp.c | 2 +- > 3 files changed, 7 insertions(+), 4 deletions(-) > > Index: linux-pm/include/linux/jiffies.h > =================================================================== > --- linux-pm.orig/include/linux/jiffies.h > +++ linux-pm/include/linux/jiffies.h > @@ -62,8 +62,11 @@ extern int register_refined_jiffies(long > /* TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ */ > #define TICK_NSEC ((NSEC_PER_SEC+HZ/2)/HZ) > > -/* TICK_USEC is the time between ticks in usec assuming fake USER_HZ */ > -#define TICK_USEC ((1000000UL + USER_HZ/2) / USER_HZ) > +/* TICK_USEC is the time between ticks in usec assuming SHIFTED_HZ */ > +#define TICK_USEC ((USEC_PER_SEC + HZ/2) / HZ) Nit: SHIFTED_HZ doesn't seem to exist anymore. Reviewed-by: Frederic Weisbecker