98d0ac38ca
The vsyscall page now consists entirely of trap instructions. Cc: John Stultz <johnstul@us.ibm.com> Signed-off-by: Andy Lutomirski <luto@mit.edu> Link: http://lkml.kernel.org/r/637648f303f2ef93af93bae25186e9a1bea093f5.1310639973.git.luto@mit.edu Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
21 lines
449 B
C
21 lines
449 B
C
/* x86-specific clocksource additions */
|
|
|
|
#ifndef _ASM_X86_CLOCKSOURCE_H
|
|
#define _ASM_X86_CLOCKSOURCE_H
|
|
|
|
#ifdef CONFIG_X86_64
|
|
|
|
#define __ARCH_HAS_CLOCKSOURCE_DATA
|
|
|
|
#define VCLOCK_NONE 0 /* No vDSO clock available. */
|
|
#define VCLOCK_TSC 1 /* vDSO should use vread_tsc. */
|
|
#define VCLOCK_HPET 2 /* vDSO should use vread_hpet. */
|
|
|
|
struct arch_clocksource_data {
|
|
int vclock_mode;
|
|
};
|
|
|
|
#endif /* CONFIG_X86_64 */
|
|
|
|
#endif /* _ASM_X86_CLOCKSOURCE_H */
|