From: Zhihui Zhang <zzhsuny@gmail.com>
To: tglx@linutronix.de, john.stultz@linaro.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] timers: Reconcile the code and the comment for the 250HZ case
Date: Mon, 2 Jan 2017 16:14:19 -0500 [thread overview]
Message-ID: <1483391659-9752-1-git-send-email-zzhsuny@gmail.com> (raw)
Adjust the time start of each level to match the comments. Note that
LVL_START(n) is never used for n = 0 case. Also, each level (except
level 0) has more than enough room to accommodate all its timers.
Signed-off-by: Zhihui Zhang <zzhsuny@gmail.com>
---
kernel/time/timer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index ec33a69..268d5ae 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -132,7 +132,7 @@ EXPORT_SYMBOL(jiffies_64);
* 5 320 131072 ms (~2m) 1048576 ms - 8388607 ms (~17m - ~2h)
* 6 384 1048576 ms (~17m) 8388608 ms - 67108863 ms (~2h - ~18h)
* 7 448 8388608 ms (~2h) 67108864 ms - 536870911 ms (~18h - ~6d)
- * 8 512 67108864 ms (~18h) 536870912 ms - 4294967288 ms (~6d - ~49d)
+ * 8 512 67108864 ms (~18h) 536870912 ms - 4294967295 ms (~6d - ~49d)
*
* HZ 100
* Level Offset Granularity Range
@@ -157,7 +157,7 @@ EXPORT_SYMBOL(jiffies_64);
* The time start value for each level to select the bucket at enqueue
* time.
*/
-#define LVL_START(n) ((LVL_SIZE - 1) << (((n) - 1) * LVL_CLK_SHIFT))
+#define LVL_START(n) (LVL_SIZE << (((n) - 1) * LVL_CLK_SHIFT))
/* Size of each clock level */
#define LVL_BITS 6
--
2.7.4
next reply other threads:[~2017-01-02 21:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-02 21:14 Zhihui Zhang [this message]
2017-01-20 22:41 ` John Stultz
2017-01-21 15:06 ` Zhihui Zhang
2017-01-23 11:10 ` Thomas Gleixner
2017-01-24 23:51 ` Zhihui Zhang
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=1483391659-9752-1-git-send-email-zzhsuny@gmail.com \
--to=zzhsuny@gmail.com \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®