mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 06:46:49 +07:00
d2312e3379
This patch move the vsyscall_gtod_data handling out of vsyscall_64.c into an additonal file vsyscall_gtod.c to make the functionality available for x86 32 bit kernel. It also adds a new vsyscall_32.c which setup the VVAR page. Reviewed-by: Andy Lutomirski <luto@amacapital.net> Signed-off-by: Stefani Seibold <stefani@seibold.net> Link: http://lkml.kernel.org/r/1395094933-14252-2-git-send-email-stefani@seibold.net Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
16 lines
424 B
C
16 lines
424 B
C
/* x86-specific clocksource additions */
|
|
|
|
#ifndef _ASM_X86_CLOCKSOURCE_H
|
|
#define _ASM_X86_CLOCKSOURCE_H
|
|
|
|
#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. */
|
|
#define VCLOCK_PVCLOCK 3 /* vDSO should use vread_pvclock. */
|
|
|
|
struct arch_clocksource_data {
|
|
int vclock_mode;
|
|
};
|
|
|
|
#endif /* _ASM_X86_CLOCKSOURCE_H */
|