2 * include/asm-i386/mach-pc9800/mach_timer.h
4 * Machine specific calibrate_tsc() for PC-9800.
5 * Written by Osamu Tomita <tomita@cinet.co.jp>
7 /* ------ Calibrate the TSC -------
9 * CTC cannot be used because some models (especially
10 * note-machines) may disable clock to speaker channel (#1)
11 * unless speaker is enabled. We use ARTIC instead.
16 #define CALIBRATE_LATCH (5 * 307200/HZ) /* 0.050sec * 307200Hz = 15360 */
18 static inline void mach_prepare_counter(void)
20 /* ARTIC can't be stopped nor reset. So we wait roundup. */
24 static inline void mach_countup(unsigned long *count)
28 } while (*count < CALIBRATE_LATCH);
31 #endif /* !_MACH_TIMER_H */