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 | |
| 6 | #ifdef CONFIG_X86_64 |
| 7 | |
Andy Lutomirski | 98d0ac3 | 2011-07-14 06:47:22 -0400 | [diff] [blame] | 8 | #define VCLOCK_NONE 0 /* No vDSO clock available. */ |
| 9 | #define VCLOCK_TSC 1 /* vDSO should use vread_tsc. */ |
| 10 | #define VCLOCK_HPET 2 /* vDSO should use vread_hpet. */ |
| 11 | |
Andy Lutomirski | 433bd80 | 2011-07-13 09:24:13 -0400 | [diff] [blame] | 12 | struct arch_clocksource_data { |
Andy Lutomirski | 98d0ac3 | 2011-07-14 06:47:22 -0400 | [diff] [blame] | 13 | int vclock_mode; |
Andy Lutomirski | 433bd80 | 2011-07-13 09:24:13 -0400 | [diff] [blame] | 14 | }; |
| 15 | |
| 16 | #endif /* CONFIG_X86_64 */ |
| 17 | |
| 18 | #endif /* _ASM_X86_CLOCKSOURCE_H */ |