xref: /OK3568_Linux_fs/kernel/include/asm-generic/timex.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __ASM_GENERIC_TIMEX_H
3*4882a593Smuzhiyun #define __ASM_GENERIC_TIMEX_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun /*
6*4882a593Smuzhiyun  * If you have a cycle counter, return the value here.
7*4882a593Smuzhiyun  */
8*4882a593Smuzhiyun typedef unsigned long cycles_t;
9*4882a593Smuzhiyun #ifndef get_cycles
get_cycles(void)10*4882a593Smuzhiyun static inline cycles_t get_cycles(void)
11*4882a593Smuzhiyun {
12*4882a593Smuzhiyun 	return 0;
13*4882a593Smuzhiyun }
14*4882a593Smuzhiyun #endif
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun /*
17*4882a593Smuzhiyun  * Architectures are encouraged to implement read_current_timer
18*4882a593Smuzhiyun  * and define this in order to avoid the expensive delay loop
19*4882a593Smuzhiyun  * calibration during boot.
20*4882a593Smuzhiyun  */
21*4882a593Smuzhiyun #undef ARCH_HAS_READ_CURRENT_TIMER
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun #endif /* __ASM_GENERIC_TIMEX_H */
24