Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __VDSO_CLOCKSOURCE_H
0003 #define __VDSO_CLOCKSOURCE_H
0004 
0005 #include <vdso/limits.h>
0006 
0007 #ifdef CONFIG_GENERIC_GETTIMEOFDAY
0008 #include <asm/vdso/clocksource.h>
0009 #endif /* CONFIG_GENERIC_GETTIMEOFDAY */
0010 
0011 enum vdso_clock_mode {
0012     VDSO_CLOCKMODE_NONE,
0013 #ifdef CONFIG_GENERIC_GETTIMEOFDAY
0014     VDSO_ARCH_CLOCKMODES,
0015 #endif
0016     VDSO_CLOCKMODE_MAX,
0017 
0018     /* Indicator for time namespace VDSO */
0019     VDSO_CLOCKMODE_TIMENS = INT_MAX
0020 };
0021 
0022 #endif /* __VDSO_CLOCKSOURCE_H */