From: Deepak Saxena <dsaxena@linaro.org>
To: Thomas Gleixner <tglx@linutronix.de>, John Stultz <johnstul@us.ibm.com>
Cc: linux-kernel@vger.kernel.org,
Linus Torvalds <torvalds@linux-foundation.org>,
patches@linaro.org
Subject: [PATCH] Remove CLOCK_TICK_RATE from ACTHZ definition
Date: Wed, 3 Aug 2011 17:00:46 -0700 [thread overview]
Message-ID: <20110804000046.GA23503@plexity.net> (raw)
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 <dsaxena@linaro.org>
---
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))
--
1.7.4.1
next reply other threads:[~2011-08-04 0:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-04 0:00 Deepak Saxena [this message]
2011-08-05 10:21 ` [PATCH] Remove CLOCK_TICK_RATE from ACTHZ definition john stultz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110804000046.GA23503@plexity.net \
--to=dsaxena@linaro.org \
--cc=dsaxena@plexity.net \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@linaro.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox