summaryrefslogtreecommitdiff
path: root/include/asm-i386/mach-default/mach_timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/mach-default/mach_timer.h')
-rw-r--r--include/asm-i386/mach-default/mach_timer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-i386/mach-default/mach_timer.h b/include/asm-i386/mach-default/mach_timer.h
index 4b9703bb0288..807992fd4171 100644
--- a/include/asm-i386/mach-default/mach_timer.h
+++ b/include/asm-i386/mach-default/mach_timer.h
@@ -15,7 +15,9 @@
#ifndef _MACH_TIMER_H
#define _MACH_TIMER_H
-#define CALIBRATE_LATCH (5 * LATCH)
+#define CALIBRATE_TIME_MSEC 30 /* 30 msecs */
+#define CALIBRATE_LATCH \
+ ((CLOCK_TICK_RATE * CALIBRATE_TIME_MSEC + 1000/2)/1000)
static inline void mach_prepare_counter(void)
{