[PATCH 2/4] ARM: smp_twd: Fix typo in twd_timer_rate printout
vkuzmichev at mvista.com
vkuzmichev at mvista.com
Mon Oct 4 05:45:38 EDT 2010
From: Vitaly Kuzmichev <vkuzmichev at mvista.com>
To get hundredths of MHz the rate needs to be divided by 10'000.
Signed-off-by: Vitaly Kuzmichev <vkuzmichev at mvista.com>
---
arch/arm/kernel/smp_twd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c
index 7bc1173..931b0e3 100644
--- 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 / 10000) % 100);
}
load = twd_timer_rate / HZ;
--
1.7.2.2
More information about the linux-arm-kernel
mailing list