initial commit with v2.6.9
[linux-2.6.9-moxart.git] / include / asm-h8300 / timex.h
blob7a61dee5dccc396ea9ebe807cddfc5f2eeb562f4
1 /*
2 * linux/include/asm-h8300/timex.h
4 * H8/300 architecture timex specifications
5 */
6 #ifndef _ASM_H8300_TIMEX_H
7 #define _ASM_H8300_TIMEX_H
9 #define CLOCK_TICK_RATE CONFIG_CPU_CLOCK*1000/8192 /* Timer input freq. */
10 #define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */
11 #define FINETUNE ((((((long)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \
12 (1000000/CLOCK_TICK_FACTOR) / (CLOCK_TICK_RATE/CLOCK_TICK_FACTOR)) \
13 << (SHIFT_SCALE-SHIFT_HZ)) / HZ)
15 typedef unsigned long cycles_t;
16 extern short h8300_timer_count;
18 static inline cycles_t get_cycles(void)
20 return 0;
23 #endif