xref: /OK3568_Linux_fs/kernel/arch/arm64/include/asm/timex.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (C) 2012 ARM Ltd.
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun #ifndef __ASM_TIMEX_H
6*4882a593Smuzhiyun #define __ASM_TIMEX_H
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #include <asm/arch_timer.h>
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun /*
11*4882a593Smuzhiyun  * Use the current timer as a cycle counter since this is what we use for
12*4882a593Smuzhiyun  * the delay loop.
13*4882a593Smuzhiyun  */
14*4882a593Smuzhiyun #define get_cycles()	arch_timer_read_counter()
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #include <asm-generic/timex.h>
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #endif
19