[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1286185540-19569-3-git-send-email-vkuzmichev@mvista.com>
Date: Mon, 4 Oct 2010 13:45:38 +0400
From: vkuzmichev@...sta.com
To: linux-arm-kernel@...ts.infradead.org
Cc: linux-watchdog@...r.kernel.org, linux-kernel@...r.kernel.org,
linux@....linux.org.uk, Vitaly Kuzmichev <vkuzmichev@...sta.com>
Subject: [PATCH 2/4] ARM: smp_twd: Fix typo in twd_timer_rate printout
From: Vitaly Kuzmichev <vkuzmichev@...sta.com>
To get hundredths of MHz the rate needs to be divided by 10'000.
Signed-off-by: Vitaly Kuzmichev <vkuzmichev@...sta.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists