aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r--arch/x86/kernel/cpu/common.c10
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
961static 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 */
971static void syscall32_cpu_init(void) 963static 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}