Linux Audio

Check our new training course

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