]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
433bd805 AL |
2 | /* x86-specific clocksource additions */ |
3 | ||
4 | #ifndef _ASM_X86_CLOCKSOURCE_H | |
5 | #define _ASM_X86_CLOCKSOURCE_H | |
6 | ||
1ed95e52 AL |
7 | #define VCLOCK_NONE 0 /* No vDSO clock available. */ |
8 | #define VCLOCK_TSC 1 /* vDSO should use vread_tsc. */ | |
9 | #define VCLOCK_PVCLOCK 2 /* vDSO should use vread_pvclock. */ | |
90b20432 VK |
10 | #define VCLOCK_HVCLOCK 3 /* vDSO should use vread_hvclock. */ |
11 | #define VCLOCK_MAX 3 | |
98d0ac38 | 12 | |
433bd805 | 13 | struct arch_clocksource_data { |
98d0ac38 | 14 | int vclock_mode; |
433bd805 AL |
15 | }; |
16 | ||
433bd805 | 17 | #endif /* _ASM_X86_CLOCKSOURCE_H */ |