ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[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 H8300_TIMER_DEFINE
10 #include <asm/machine-depend.h>
11 #undef  H8300_TIMER_DEFINE
12
13 #define CLOCK_TICK_RATE H8300_TIMER_FREQ
14 #define CLOCK_TICK_FACTOR       20      /* Factor of both 1000000 and CLOCK_TICK_RATE */
15 #define FINETUNE ((((((long)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \
16         (1000000/CLOCK_TICK_FACTOR) / (CLOCK_TICK_RATE/CLOCK_TICK_FACTOR)) \
17                 << (SHIFT_SCALE-SHIFT_HZ)) / HZ)
18
19 typedef unsigned long cycles_t;
20 extern short h8300_timer_count;
21
22 static inline cycles_t get_cycles(void)
23 {
24         return 0;
25 }
26
27 #endif