diff options
author | Stefani Seibold <stefani@seibold.net> | 2014-03-17 18:22:01 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-03-18 15:51:52 -0400 |
commit | d2312e3379d581d2c3603357a0181046448e1de3 (patch) | |
tree | ab547fa84f977650479eb13dc038bca85acba402 /arch/x86/kernel/tsc.c | |
parent | 1f2cbcf648962cdcf511d234cb39745baa9f5d07 (diff) |
x86, vdso: Make vsyscall_gtod_data handling x86 generic
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>
Diffstat (limited to 'arch/x86/kernel/tsc.c')
-rw-r--r-- | arch/x86/kernel/tsc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index cfbe99f88830..227dcfc0e5e7 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c | |||
@@ -985,9 +985,7 @@ static struct clocksource clocksource_tsc = { | |||
985 | .mask = CLOCKSOURCE_MASK(64), | 985 | .mask = CLOCKSOURCE_MASK(64), |
986 | .flags = CLOCK_SOURCE_IS_CONTINUOUS | | 986 | .flags = CLOCK_SOURCE_IS_CONTINUOUS | |
987 | CLOCK_SOURCE_MUST_VERIFY, | 987 | CLOCK_SOURCE_MUST_VERIFY, |
988 | #ifdef CONFIG_X86_64 | ||
989 | .archdata = { .vclock_mode = VCLOCK_TSC }, | 988 | .archdata = { .vclock_mode = VCLOCK_TSC }, |
990 | #endif | ||
991 | }; | 989 | }; |
992 | 990 | ||
993 | void mark_tsc_unstable(char *reason) | 991 | void mark_tsc_unstable(char *reason) |