2020-03-20 14:53:33 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __VDSO_CLOCKSOURCE_H
|
|
|
|
#define __VDSO_CLOCKSOURCE_H
|
|
|
|
|
|
|
|
#include <vdso/limits.h>
|
|
|
|
|
2020-03-23 13:39:20 +00:00
|
|
|
#ifdef CONFIG_GENERIC_GETTIMEOFDAY
|
2020-03-20 14:53:33 +00:00
|
|
|
#include <asm/vdso/clocksource.h>
|
2020-03-23 13:39:20 +00:00
|
|
|
#endif /* CONFIG_GENERIC_GETTIMEOFDAY */
|
2020-03-20 14:53:33 +00:00
|
|
|
|
|
|
|
enum vdso_clock_mode {
|
|
|
|
VDSO_CLOCKMODE_NONE,
|
|
|
|
#ifdef CONFIG_GENERIC_GETTIMEOFDAY
|
|
|
|
VDSO_ARCH_CLOCKMODES,
|
|
|
|
#endif
|
|
|
|
VDSO_CLOCKMODE_MAX,
|
|
|
|
|
|
|
|
/* Indicator for time namespace VDSO */
|
|
|
|
VDSO_CLOCKMODE_TIMENS = INT_MAX
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __VDSO_CLOCKSOURCE_H */
|