18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_GENERIC_TIMEX_H 38c2ecf20Sopenharmony_ci#define __ASM_GENERIC_TIMEX_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci/* 68c2ecf20Sopenharmony_ci * If you have a cycle counter, return the value here. 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_citypedef unsigned long cycles_t; 98c2ecf20Sopenharmony_ci#ifndef get_cycles 108c2ecf20Sopenharmony_cistatic inline cycles_t get_cycles(void) 118c2ecf20Sopenharmony_ci{ 128c2ecf20Sopenharmony_ci return 0; 138c2ecf20Sopenharmony_ci} 148c2ecf20Sopenharmony_ci#endif 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/* 178c2ecf20Sopenharmony_ci * Architectures are encouraged to implement read_current_timer 188c2ecf20Sopenharmony_ci * and define this in order to avoid the expensive delay loop 198c2ecf20Sopenharmony_ci * calibration during boot. 208c2ecf20Sopenharmony_ci */ 218c2ecf20Sopenharmony_ci#undef ARCH_HAS_READ_CURRENT_TIMER 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#endif /* __ASM_GENERIC_TIMEX_H */ 24