2020-03-20 17:53:33 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __VDSO_CLOCKSOURCE_H
|
|
|
|
#define __VDSO_CLOCKSOURCE_H
|
|
|
|
|
|
|
|
#include <vdso/limits.h>
|
|
|
|
|
2020-03-23 16:39:20 +03:00
|
|
|
#ifdef CONFIG_GENERIC_GETTIMEOFDAY
|
2020-03-20 17:53:33 +03:00
|
|
|
#include <asm/vdso/clocksource.h>
|
2020-03-23 16:39:20 +03:00
|
|
|
#endif /* CONFIG_GENERIC_GETTIMEOFDAY */
|
2020-03-20 17:53:33 +03: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 */
|