xref: /OK3568_Linux_fs/kernel/include/vdso/clocksource.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __VDSO_CLOCKSOURCE_H
3*4882a593Smuzhiyun #define __VDSO_CLOCKSOURCE_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <vdso/limits.h>
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #ifdef CONFIG_GENERIC_GETTIMEOFDAY
8*4882a593Smuzhiyun #include <asm/vdso/clocksource.h>
9*4882a593Smuzhiyun #endif /* CONFIG_GENERIC_GETTIMEOFDAY */
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun enum vdso_clock_mode {
12*4882a593Smuzhiyun 	VDSO_CLOCKMODE_NONE,
13*4882a593Smuzhiyun #ifdef CONFIG_GENERIC_GETTIMEOFDAY
14*4882a593Smuzhiyun 	VDSO_ARCH_CLOCKMODES,
15*4882a593Smuzhiyun #endif
16*4882a593Smuzhiyun 	VDSO_CLOCKMODE_MAX,
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun 	/* Indicator for time namespace VDSO */
19*4882a593Smuzhiyun 	VDSO_CLOCKMODE_TIMENS = INT_MAX
20*4882a593Smuzhiyun };
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun #endif /* __VDSO_CLOCKSOURCE_H */
23