blob: dc4cfc888d6df3e95eec3de3a26f8ad60b40b18b [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Andy Lutomirski433bd802011-07-13 09:24:13 -04002/* x86-specific clocksource additions */
3
4#ifndef _ASM_X86_CLOCKSOURCE_H
5#define _ASM_X86_CLOCKSOURCE_H
6
Andy Lutomirski1ed95e52016-04-07 17:16:59 -07007#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 Kuznetsov90b20432017-03-03 14:21:42 +010010#define VCLOCK_HVCLOCK 3 /* vDSO should use vread_hvclock. */
11#define VCLOCK_MAX 3
Andy Lutomirski98d0ac32011-07-14 06:47:22 -040012
Andy Lutomirski433bd802011-07-13 09:24:13 -040013struct arch_clocksource_data {
Andy Lutomirski98d0ac32011-07-14 06:47:22 -040014 int vclock_mode;
Andy Lutomirski433bd802011-07-13 09:24:13 -040015};
16
Andy Lutomirski433bd802011-07-13 09:24:13 -040017#endif /* _ASM_X86_CLOCKSOURCE_H */