summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDave Jones <davej@suse.de>2002-04-02 19:21:05 -0800
committerDave Jones <davej@suse.de>2002-04-02 19:21:05 -0800
commit8902f99efdd172fa8e9c3eb3a31ea68b3cadf852 (patch)
treedbe95ec3a09f641ed34c64d3dc19ade195ac0db7 /include
parentcf937c603c379539940506e00c677842aec5bd37 (diff)
[PATCH] AMD Elan uses slightly different clock freq
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/timex.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/asm-i386/timex.h b/include/asm-i386/timex.h
index 97099dd0d414..6cfc7c9a08fc 100644
--- a/include/asm-i386/timex.h
+++ b/include/asm-i386/timex.h
@@ -9,7 +9,12 @@
#include <linux/config.h>
#include <asm/msr.h>
-#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
+#ifdef CONFIG_MELAN
+# define CLOCK_TICK_RATE 1189200 /* AMD Elan has different frequency! */
+#else
+# define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
+#endif
+
#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)) \