GNU Linux-libre 4.14.266-gnu1
[releases.git] / arch / m32r / include / asm / timex.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_M32R_TIMEX_H
3 #define _ASM_M32R_TIMEX_H
4
5 /*
6  * linux/include/asm-m32r/timex.h
7  *
8  * m32r architecture timex specifications
9  */
10
11 #define CLOCK_TICK_RATE (CONFIG_BUS_CLOCK / CONFIG_TIMER_DIVIDE)
12 #define CLOCK_TICK_FACTOR       20      /* Factor of both 1000000 and CLOCK_TICK_RATE */
13
14 #ifdef __KERNEL__
15 /*
16  * Standard way to access the cycle counter.
17  * Currently only used on SMP.
18  */
19
20 typedef unsigned long long cycles_t;
21
22 static __inline__ cycles_t get_cycles (void)
23 {
24         return 0;
25 }
26 #endif  /* __KERNEL__ */
27
28 #endif  /* _ASM_M32R_TIMEX_H */