More cleaning ...
[linux-2.6/linux-mips.git] / include / asm-v850 / timex.h
blob729e2789fcf34d649c0286aa1761d5e15bc5e434
1 /*
2 * linux/include/asm-v850/timex.h
4 * v850 architecture timex specifications
5 */
6 #ifndef __V850_TIMEX_H__
7 #define __V850_TIMEX_H__
9 #define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
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;
17 static inline cycles_t get_cycles(void)
19 return 0;
22 #endif /* __V850_TIMEX_H__ */