patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / include / asm-h8300 / timex.h
1 /*
2  * linux/include/asm-h8300/timex.h
3  *
4  * H8/300 architecture timex specifications
5  */
6 #ifndef _ASM_H8300_TIMEX_H
7 #define _ASM_H8300_TIMEX_H
8
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)
14
15 typedef unsigned long cycles_t;
16 extern short h8300_timer_count;
17
18 static inline cycles_t get_cycles(void)
19 {
20         return 0;
21 }
22
23 #endif