Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
20typedef unsigned long long cycles_t;
21
22static __inline__ cycles_t get_cycles (void)
23{
24 return 0;
25}
26#endif /* __KERNEL__ */
27
28#endif /* _ASM_M32R_TIMEX_H */