xref: /openbmc/linux/arch/arm64/include/asm/timex.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*caab277bSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2985c0679SMarc Zyngier /*
3985c0679SMarc Zyngier  * Copyright (C) 2012 ARM Ltd.
4985c0679SMarc Zyngier  */
5985c0679SMarc Zyngier #ifndef __ASM_TIMEX_H
6985c0679SMarc Zyngier #define __ASM_TIMEX_H
7985c0679SMarc Zyngier 
86916b14eSChen Gang #include <asm/arch_timer.h>
96916b14eSChen Gang 
10985c0679SMarc Zyngier /*
11985c0679SMarc Zyngier  * Use the current timer as a cycle counter since this is what we use for
12985c0679SMarc Zyngier  * the delay loop.
13985c0679SMarc Zyngier  */
14e6d68b00SChristoffer Dall #define get_cycles()	arch_timer_read_counter()
15985c0679SMarc Zyngier 
16985c0679SMarc Zyngier #include <asm-generic/timex.h>
17985c0679SMarc Zyngier 
18985c0679SMarc Zyngier #endif
19