From: Bo Shen <voice.shen@atmel.com>
To: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Stephen Boyd <sboyd@codeaurora.org>,
John Stultz <john.stultz@linaro.org>,
Will Deacon <will.deacon@arm.com>,
Rob Herring <rob.herring@calxeda.com>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Bo Shen <voice.shen@atmel.com>
Subject: [RFC PATCH] clock: correct the comparison parameter of MHz
Date: Wed, 7 Aug 2013 15:47:40 +0800 [thread overview]
Message-ID: <1375861660-32525-1-git-send-email-voice.shen@atmel.com> (raw)
correct the comparison parameter of MHz from 4,000,000 to 1,000,000
Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
kernel/time/sched_clock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c
index a326f27..62885f7 100644
--- a/kernel/time/sched_clock.c
+++ b/kernel/time/sched_clock.c
@@ -128,7 +128,7 @@ void __init setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate)
clocks_calc_mult_shift(&cd.mult, &cd.shift, rate, NSEC_PER_SEC, 0);
r = rate;
- if (r >= 4000000) {
+ if (r >= 1000000) {
r /= 1000000;
r_unit = 'M';
} else if (r >= 1000) {
--
1.7.9.5
next reply other threads:[~2013-08-07 7:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-07 7:47 Bo Shen [this message]
2013-08-07 8:02 ` Russell King - ARM Linux
2013-08-07 8:08 ` Bo Shen
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=1375861660-32525-1-git-send-email-voice.shen@atmel.com \
--to=voice.shen@atmel.com \
--cc=john.stultz@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+kernel@arm.linux.org.uk \
--cc=rob.herring@calxeda.com \
--cc=sboyd@codeaurora.org \
--cc=will.deacon@arm.com \
/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®