Andy Lutomirski | 433bd80 | 2011-07-13 09:24:13 -0400 | [diff] [blame] | 1 | /* x86-specific clocksource additions */ |
| 2 | |
| 3 | #ifndef _ASM_X86_CLOCKSOURCE_H |
| 4 | #define _ASM_X86_CLOCKSOURCE_H |
| 5 | |
Andy Lutomirski | 98d0ac3 | 2011-07-14 06:47:22 -0400 | [diff] [blame] | 6 | #define VCLOCK_NONE 0 /* No vDSO clock available. */ |
| 7 | #define VCLOCK_TSC 1 /* vDSO should use vread_tsc. */ |
| 8 | #define VCLOCK_HPET 2 /* vDSO should use vread_hpet. */ |
Marcelo Tosatti | 71056ae | 2012-11-27 23:28:55 -0200 | [diff] [blame] | 9 | #define VCLOCK_PVCLOCK 3 /* vDSO should use vread_pvclock. */ |
Andy Lutomirski | 98d0ac3 | 2011-07-14 06:47:22 -0400 | [diff] [blame] | 10 | |
Andy Lutomirski | 433bd80 | 2011-07-13 09:24:13 -0400 | [diff] [blame] | 11 | struct arch_clocksource_data { |
Andy Lutomirski | 98d0ac3 | 2011-07-14 06:47:22 -0400 | [diff] [blame] | 12 | int vclock_mode; |
Andy Lutomirski | 433bd80 | 2011-07-13 09:24:13 -0400 | [diff] [blame] | 13 | }; |
| 14 | |
Andy Lutomirski | 433bd80 | 2011-07-13 09:24:13 -0400 | [diff] [blame] | 15 | #endif /* _ASM_X86_CLOCKSOURCE_H */ |