summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx27/time.c1
-rw-r--r--arch/arm/plat-mxc/time.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mx27/time.c b/arch/arm/mach-mx27/time.c
index a8af7ccc55ef..97c56e18ec64 100644
--- a/arch/arm/mach-mx27/time.c
+++ b/arch/arm/mach-mx27/time.c
@@ -192,6 +192,7 @@ void __init mxc_init_time(void)
#ifdef CLOCK_TICK_RATE
div = rate / CLOCK_TICK_RATE;
WARN_ON((div * CLOCK_TICK_RATE) != rate);
+ rate /= div;
#else /* Hopefully CLOCK_TICK_RATE will go away soon */
div = 1;
while (rate > 20000000) {
diff --git a/arch/arm/plat-mxc/time.c b/arch/arm/plat-mxc/time.c
index 1c5fdcd3a720..5ba34425604e 100644
--- a/arch/arm/plat-mxc/time.c
+++ b/arch/arm/plat-mxc/time.c
@@ -253,6 +253,7 @@ void __init mxc_init_time(void)
#ifdef CLOCK_TICK_RATE
div = rate / CLOCK_TICK_RATE;
WARN_ON((div * CLOCK_TICK_RATE) != rate);
+ rate /= div;
#else /* Hopefully CLOCK_TICK_RATE will go away soon */
div = 1;
while (rate > 20000000) {