162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef __ASM_GENERIC_TIMEX_H 362306a36Sopenharmony_ci#define __ASM_GENERIC_TIMEX_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci/* 662306a36Sopenharmony_ci * If you have a cycle counter, return the value here. 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_citypedef unsigned long cycles_t; 962306a36Sopenharmony_ci#ifndef get_cycles 1062306a36Sopenharmony_cistatic inline cycles_t get_cycles(void) 1162306a36Sopenharmony_ci{ 1262306a36Sopenharmony_ci return 0; 1362306a36Sopenharmony_ci} 1462306a36Sopenharmony_ci#endif 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci/* 1762306a36Sopenharmony_ci * Architectures are encouraged to implement read_current_timer 1862306a36Sopenharmony_ci * and define this in order to avoid the expensive delay loop 1962306a36Sopenharmony_ci * calibration during boot. 2062306a36Sopenharmony_ci */ 2162306a36Sopenharmony_ci#undef ARCH_HAS_READ_CURRENT_TIMER 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci#endif /* __ASM_GENERIC_TIMEX_H */ 24