summaryrefslogtreecommitdiffstats
path: root/include/asm-sh/timex.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sh/timex.h')
-rw-r--r--include/asm-sh/timex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-sh/timex.h b/include/asm-sh/timex.h
index 2351c2f0b..72a0cd593 100644
--- a/include/asm-sh/timex.h
+++ b/include/asm-sh/timex.h
@@ -6,7 +6,7 @@
#ifndef __ASM_SH_TIMEX_H
#define __ASM_SH_TIMEX_H
-#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
+#define CLOCK_TICK_RATE (current_cpu_data.module_clock/4) /* Underlying HZ */
#define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */
#define FINETUNE ((((((long)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \
(1000000/CLOCK_TICK_FACTOR) / (CLOCK_TICK_RATE/CLOCK_TICK_FACTOR)) \