Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Andy Lutomirski | 433bd80 | 2011-07-13 09:24:13 -0400 | [diff] [blame] | 2 | /* x86-specific clocksource additions */ |
| 3 | |
| 4 | #ifndef _ASM_X86_CLOCKSOURCE_H |
| 5 | #define _ASM_X86_CLOCKSOURCE_H |
| 6 | |
Andy Lutomirski | 1ed95e5 | 2016-04-07 17:16:59 -0700 | [diff] [blame] | 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. */ |
Vitaly Kuznetsov | 90b2043 | 2017-03-03 14:21:42 +0100 | [diff] [blame] | 10 | #define VCLOCK_HVCLOCK 3 /* vDSO should use vread_hvclock. */ |
| 11 | #define VCLOCK_MAX 3 |
Andy Lutomirski | 98d0ac3 | 2011-07-14 06:47:22 -0400 | [diff] [blame] | 12 | |
Andy Lutomirski | 433bd80 | 2011-07-13 09:24:13 -0400 | [diff] [blame] | 13 | struct arch_clocksource_data { |
Andy Lutomirski | 98d0ac3 | 2011-07-14 06:47:22 -0400 | [diff] [blame] | 14 | int vclock_mode; |
Andy Lutomirski | 433bd80 | 2011-07-13 09:24:13 -0400 | [diff] [blame] | 15 | }; |
| 16 | |
Andy Lutomirski | 433bd80 | 2011-07-13 09:24:13 -0400 | [diff] [blame] | 17 | #endif /* _ASM_X86_CLOCKSOURCE_H */ |