blob: c682e7c60273af1d130f375f4af4bf070e5041d0 [file] [log] [blame]
Vincenzo Frascino14ee2ac2020-03-20 14:53:33 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __VDSO_CLOCKSOURCE_H
3#define __VDSO_CLOCKSOURCE_H
4
5#include <vdso/limits.h>
6
Vincenzo Frascinoca214e22020-03-23 13:39:20 +00007#ifdef CONFIG_GENERIC_GETTIMEOFDAY
Vincenzo Frascino14ee2ac2020-03-20 14:53:33 +00008#include <asm/vdso/clocksource.h>
Vincenzo Frascinoca214e22020-03-23 13:39:20 +00009#endif /* CONFIG_GENERIC_GETTIMEOFDAY */
Vincenzo Frascino14ee2ac2020-03-20 14:53:33 +000010
11enum vdso_clock_mode {
12 VDSO_CLOCKMODE_NONE,
13#ifdef CONFIG_GENERIC_GETTIMEOFDAY
14 VDSO_ARCH_CLOCKMODES,
15#endif
16 VDSO_CLOCKMODE_MAX,
17
18 /* Indicator for time namespace VDSO */
19 VDSO_CLOCKMODE_TIMENS = INT_MAX
20};
21
22#endif /* __VDSO_CLOCKSOURCE_H */