diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-10 17:24:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-10 17:24:20 -0500 |
commit | 3100e448e7d74489a96cb7b45d88fe6962774eaa (patch) | |
tree | 53e46a702bd191ca43639b560d2bb1d3b0ad18c8 /arch/x86/kernel/cpu/common.c | |
parent | c9f861c77269bc9950c16c6404a9476062241671 (diff) | |
parent | 26893107aa717cd11010f0c278d02535defa1ac9 (diff) |
Merge branch 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 vdso updates from Ingo Molnar:
"Various vDSO updates from Andy Lutomirski, mostly cleanups and
reorganization to improve maintainability, but also some
micro-optimizations and robustization changes"
* 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86_64/vsyscall: Restore orig_ax after vsyscall seccomp
x86_64: Add a comment explaining the TASK_SIZE_MAX guard page
x86_64,vsyscall: Make vsyscall emulation configurable
x86_64, vsyscall: Rewrite comment and clean up headers in vsyscall code
x86_64, vsyscall: Turn vsyscalls all the way off when vsyscall==none
x86,vdso: Use LSL unconditionally for vgetcpu
x86: vdso: Fix build with older gcc
x86_64/vdso: Clean up vgetcpu init and merge the vdso initcalls
x86_64/vdso: Remove jiffies from the vvar page
x86/vdso: Make the PER_CPU segment 32 bits
x86/vdso: Make the PER_CPU segment start out accessed
x86/vdso: Change the PER_CPU segment to use struct desc_struct
x86_64/vdso: Move getcpu code from vsyscall_64.c to vdso/vma.c
x86_64/vsyscall: Move all of the gate_area code to vsyscall_64.c
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index cfa9b5b2c27a..c6049650c093 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -958,14 +958,6 @@ static void identify_cpu(struct cpuinfo_x86 *c) | |||
958 | } | 958 | } |
959 | 959 | ||
960 | #ifdef CONFIG_X86_64 | 960 | #ifdef CONFIG_X86_64 |
961 | static void vgetcpu_set_mode(void) | ||
962 | { | ||
963 | if (cpu_has(&boot_cpu_data, X86_FEATURE_RDTSCP)) | ||
964 | vgetcpu_mode = VGETCPU_RDTSCP; | ||
965 | else | ||
966 | vgetcpu_mode = VGETCPU_LSL; | ||
967 | } | ||
968 | |||
969 | #ifdef CONFIG_IA32_EMULATION | 961 | #ifdef CONFIG_IA32_EMULATION |
970 | /* May not be __init: called during resume */ | 962 | /* May not be __init: called during resume */ |
971 | static void syscall32_cpu_init(void) | 963 | static void syscall32_cpu_init(void) |
@@ -1008,8 +1000,6 @@ void __init identify_boot_cpu(void) | |||
1008 | #ifdef CONFIG_X86_32 | 1000 | #ifdef CONFIG_X86_32 |
1009 | sysenter_setup(); | 1001 | sysenter_setup(); |
1010 | enable_sep_cpu(); | 1002 | enable_sep_cpu(); |
1011 | #else | ||
1012 | vgetcpu_set_mode(); | ||
1013 | #endif | 1003 | #endif |
1014 | cpu_detect_tlb(&boot_cpu_data); | 1004 | cpu_detect_tlb(&boot_cpu_data); |
1015 | } | 1005 | } |