2 * linux/include/asm-h8300/timex.h
4 * H8/300 architecture timex specifications
6 #ifndef _ASM_H8300_TIMEX_H
7 #define _ASM_H8300_TIMEX_H
9 #define H8300_TIMER_DEFINE
10 #include <asm/machine-depend.h>
11 #undef H8300_TIMER_DEFINE
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)
19 typedef unsigned long cycles_t;
20 extern short h8300_timer_count;
22 static inline cycles_t get_cycles(void)