x86/fpu: Rename fpu_detect() to fpu__detect()
authorIngo Molnar <mingo@kernel.org>
Fri, 3 Apr 2015 09:33:52 +0000 (11:33 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:10 +0000 (15:47 +0200)
Use the fpu__*() namespace to organize FPU ops better.

Also document fpu__detect() a bit.

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/i387.c

index 23ba6765b718c790dbf698edbb2758a2ca6f9102..2dc08c231a9a9e6ca78d5ca7aad40e391b81e077 100644 (file)
@@ -166,7 +166,7 @@ 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 fpu__detect(struct cpuinfo_x86 *c);
 
 extern void early_cpu_init(void);
 extern void identify_boot_cpu(void);
index a62cf04dac8ae99d1310b02b827bca528311d490..60a29d290e2a62e8f4a629ae1735abcf671ed4a5 100644 (file)
@@ -759,7 +759,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__detect(c);
 
        if (this_cpu->c_early_init)
                this_cpu->c_early_init(c);
index 66f1053ae2cd5c709b041e6f9368d2bbb355690b..29251f5668b1c84f3712b78de222cd464829281d 100644 (file)
@@ -640,7 +640,11 @@ static int __init no_387(char *s)
 
 __setup("no387", no_387);
 
-void fpu_detect(struct cpuinfo_x86 *c)
+/*
+ * Set the X86_FEATURE_FPU CPU-capability bit based on
+ * trying to execute an actual sequence of FPU instructions:
+ */
+void fpu__detect(struct cpuinfo_x86 *c)
 {
        unsigned long cr0;
        u16 fsw, fcw;
This page took 0.027428 seconds and 5 git commands to generate.