projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56949d4
)
ARM: twd: fix display of twd frequency
author
Russell King
<rmk+kernel@arm.linux.org.uk>
Tue, 11 Jan 2011 12:11:01 +0000
(12:11 +0000)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Tue, 11 Jan 2011 12:11:01 +0000
(12:11 +0000)
The fraction of MHz was not being displayed correctly as the calculation
was a factor of 10 out. Fix this.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/smp_twd.c
patch
|
blob
|
history
diff --git
a/arch/arm/kernel/smp_twd.c
b/arch/arm/kernel/smp_twd.c
index dd790745b3ef7f1cabcba28d03c7e6acdbc6b2e4..fd9156698ab93798244f4560f9a4983e69d12e94 100644
(file)
--- a/
arch/arm/kernel/smp_twd.c
+++ b/
arch/arm/kernel/smp_twd.c
@@
-114,7
+114,7
@@
static void __cpuinit twd_calibrate_rate(void)
twd_timer_rate = (0xFFFFFFFFU - count) * (HZ / 5);
printk("%lu.%02luMHz.\n", twd_timer_rate / 1000000,
- (twd_timer_rate / 100000) % 100);
+ (twd_timer_rate / 100000
0
) % 100);
}
load = twd_timer_rate / HZ;