Received: by 10.213.65.68 with SMTP id h4csp323553imn; Fri, 6 Apr 2018 00:21:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx49TE2JSRppCppVNmIMi/WxzoImvgPJpdicKLTernySDLXTI3sbVT0YiWrNZa1/B7sUIyNzH X-Received: by 2002:a17:902:aa96:: with SMTP id d22-v6mr25975351plr.106.1522999303332; Fri, 06 Apr 2018 00:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522999303; cv=none; d=google.com; s=arc-20160816; b=Oc5XTeZjSnE3u0G+H7CXCAihnys9MJNz2wq0CUqK5uYKOfxzsPHbr0J2eY6lHiEMnz 4s2+SRKhh0pdHwoz0iU6O8uj2Vhm8HJ5J8vYCAX53vtqo/xYq6I8KuCeQwDqHl0CkUet tpqsKqh4QxK3EXQZ9WrZ8iPII/2gT1qzDPpqTjRan2SiE5OR2Nv0zaP/cKAkgc6B2SS9 8H9DhBqV7H4nOmUQi2ptNPRms6/bvoSMBroTsIiammG3B7RUmQWREckKC+5XQNbY53cZ uBycmoU28kbaz3zKMTtYGgbnTPifTQXgdpK1zSALmH2YSajeG/snUZ6v55UzyvStRjoL EWMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=QqNv3mL2Td1PQYEpKUVWi4uk67+LL++ybntT6RNRHxU=; b=fAJQDeIKaOvBObdNepsapL4Ms+hUv309N8aK/yif8gd4ZOdMDlxX3g7TuB3tQ5scYT RGlnOJXjblpCA4YwT2/suD31pkmKUK86UkMmqTEjPwWmEbbpFZm97QPh9ICNtMUQM6uG PfKX85qHIPMxGJ3wq7TXdXhn6KTwHwRZ1hY0H64f8b4M/pCF2kAYktuFVu+slsXCiuNI A7Px13JXvIy7L2Uy8wsY4/XeEXVvguYhrVpZENZGQrdOmnplD64rd7HxEOH5xNdZCQiJ 6X6m3sJlVRM+kB77rr8ZpilOu4OZHvS+eMPwSXyLm/ABU+K3hpqRoRGR+gmf3x0T3w80 /x9Q== 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 v12-v6si7706252plk.615.2018.04.06.00.21.28; Fri, 06 Apr 2018 00:21:43 -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 S1751344AbeDFHUW (ORCPT + 99 others); Fri, 6 Apr 2018 03:20:22 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:51669 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750807AbeDFHUV (ORCPT ); Fri, 6 Apr 2018 03:20:21 -0400 Received: from 79.184.255.92.ipv4.supernova.orange.pl (79.184.255.92) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id ae7582d969fb88f4; Fri, 6 Apr 2018 09:20:19 +0200 From: "Rafael J. Wysocki" To: Frederic Weisbecker 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 Date: Fri, 06 Apr 2018 09:20:31 +0200 Message-ID: <72540493.566rOE4q81@aspire.rjw.lan> In-Reply-To: <20180406010954.GA4400@lerouge> References: <1736751.LdhZHb50jq@aspire.rjw.lan> <7620417.mBP1cQHt5D@aspire.rjw.lan> <20180406010954.GA4400@lerouge> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, April 6, 2018 3:09:55 AM CEST Frederic Weisbecker wrote: > 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. Well, fair enough, but that would need to be changed along with the TICK_NSEC comment IMO. > Reviewed-by: Frederic Weisbecker Thanks!