x86/fpu: Remove the extra fpu__detect() layer
authorIngo Molnar <mingo@kernel.org>
Sun, 26 Apr 2015 13:12:44 +0000 (15:12 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:46 +0000 (15:47 +0200)
Now that fpu__detect() has become an empty layer around
fpu__init_system(), eliminate it and make fpu__init_system()
the main system initialization routine.

Reviewed-by: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/fpu/init.c

index 0f4add46269791e3ee8668aea825aa11484b05bc..b9e487499ae2a30988d4eac15e9a71f90e6b3631 100644 (file)
@@ -167,7 +167,6 @@ extern const struct seq_operations cpuinfo_op;
 #define cache_line_size()      (boot_cpu_data.x86_cache_alignment)
 
 extern void cpu_detect(struct cpuinfo_x86 *c);
-extern void fpu__detect(struct cpuinfo_x86 *c);
 
 extern void early_cpu_init(void);
 extern void identify_boot_cpu(void);
index d28f8ebc506d535e1c64cf5b4671008cfe94a178..d15610b0a4cf01e7b6b8360d0dd5a5ca16afb227 100644 (file)
@@ -758,7 +758,7 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)
        cpu_detect(c);
        get_cpu_vendor(c);
        get_cpu_cap(c);
-       fpu__detect(c);
+       fpu__init_system(c);
 
        if (this_cpu->c_early_init)
                this_cpu->c_early_init(c);
index 1155a98d8c1efb233810aae83b345f6eb0bc7538..77b5d403de22d95d4da1746875a6a3c241c989a3 100644 (file)
@@ -231,9 +231,3 @@ static int __init no_387(char *s)
 }
 
 __setup("no387", no_387);
-
-void fpu__detect(struct cpuinfo_x86 *c)
-{
-       fpu__init_system(c);
-       /* The final cr0 value is set later, in fpu_init() */
-}