From patchwork Thu Aug 4 00:00:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dsaxena-linaro2 X-Patchwork-Id: 3255 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 1071124070 for ; Thu, 4 Aug 2011 00:00:50 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id CE05BA1833B for ; Thu, 4 Aug 2011 00:00:49 +0000 (UTC) Received: by qwb8 with SMTP id 8so644003qwb.11 for ; Wed, 03 Aug 2011 17:00:49 -0700 (PDT) Received: by 10.229.68.97 with SMTP id u33mr69459qci.159.1312416049223; Wed, 03 Aug 2011 17:00:49 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.6.73 with SMTP id 9cs173242qcy; Wed, 3 Aug 2011 17:00:48 -0700 (PDT) Received: by 10.236.144.198 with SMTP id n46mr220878yhj.84.1312416047983; Wed, 03 Aug 2011 17:00:47 -0700 (PDT) Received: from plexity.net (plexity.net [206.123.115.38]) by mx.google.com with ESMTPS id h65si3944397yhe.130.2011.08.03.17.00.46 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 03 Aug 2011 17:00:46 -0700 (PDT) Received-SPF: pass (google.com: domain of dsaxena@plexity.net designates 206.123.115.38 as permitted sender) client-ip=206.123.115.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dsaxena@plexity.net designates 206.123.115.38 as permitted sender) smtp.mail=dsaxena@plexity.net Received: by plexity.net (Postfix, from userid 1000) id 8029321448; Wed, 3 Aug 2011 17:00:46 -0700 (PDT) Date: Wed, 3 Aug 2011 17:00:46 -0700 From: Deepak Saxena To: Thomas Gleixner , John Stultz Cc: linux-kernel@vger.kernel.org, Linus Torvalds , patches@linaro.org Subject: [PATCH] Remove CLOCK_TICK_RATE from ACTHZ definition Message-ID: <20110804000046.GA23503@plexity.net> Reply-To: dsaxena@plexity.net MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) As per https://lkml.org/lkml/2011/2/21/323, we remove CLOCK_TICK_RATE from the definition of ACTHZ as the majority of CLOCK_TICK_RATE values are no longer valid or needed for proper operation of the time code. Signed-off-by: Deepak Saxena --- include/linux/jiffies.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/jiffies.h b/include/linux/jiffies.h index f97672a..d232f00 100644 --- a/include/linux/jiffies.h +++ b/include/linux/jiffies.h @@ -55,7 +55,7 @@ + ((((NOM) % (DEN)) << (LSH)) + (DEN) / 2) / (DEN)) /* HZ is the requested value. ACTHZ is actual HZ ("<< 8" is for accuracy) */ -#define ACTHZ (SH_DIV (CLOCK_TICK_RATE, LATCH, 8)) +#define ACTHZ (HZ << 8) /* TICK_NSEC is the time between ticks in nsec assuming real ACTHZ */ #define TICK_NSEC (SH_DIV (1000000UL * 1000, ACTHZ, 8))