Vincenzo Frascino | 14ee2ac | 2020-03-20 14:53:33 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef __VDSO_CLOCKSOURCE_H |
| 3 | #define __VDSO_CLOCKSOURCE_H |
| 4 | |
| 5 | #include <vdso/limits.h> |
| 6 | |
Vincenzo Frascino | ca214e2 | 2020-03-23 13:39:20 +0000 | [diff] [blame] | 7 | #ifdef CONFIG_GENERIC_GETTIMEOFDAY |
Vincenzo Frascino | 14ee2ac | 2020-03-20 14:53:33 +0000 | [diff] [blame] | 8 | #include <asm/vdso/clocksource.h> |
Vincenzo Frascino | ca214e2 | 2020-03-23 13:39:20 +0000 | [diff] [blame] | 9 | #endif /* CONFIG_GENERIC_GETTIMEOFDAY */ |
Vincenzo Frascino | 14ee2ac | 2020-03-20 14:53:33 +0000 | [diff] [blame] | 10 | |
| 11 | enum 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 */ |