]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86/fpu: Rename fpu-internal.h to fpu/internal.h
authorIngo Molnar <mingo@kernel.org>
Fri, 24 Apr 2015 00:54:44 +0000 (02:54 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:31 +0000 (15:47 +0200)
This unifies all the FPU related header files under a unified, hiearchical
naming scheme:

 - asm/fpu/types.h:      FPU related data types, needed for 'struct task_struct',
                         widely included in almost all kernel code, and hence kept
                         as small as possible.

 - asm/fpu/api.h:        FPU related 'public' methods exported to other subsystems.

 - asm/fpu/internal.h:   FPU subsystem internal methods

 - asm/fpu/xsave.h:      XSAVE support internal methods

(Also standardize the header guard in asm/fpu/internal.h.)

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>
18 files changed:
arch/x86/crypto/crc32c-intel_glue.c
arch/x86/crypto/sha-mb/sha1_mb.c
arch/x86/ia32/ia32_signal.c
arch/x86/include/asm/fpu/internal.h [moved from arch/x86/include/asm/fpu-internal.h with 99% similarity]
arch/x86/kernel/cpu/common.c
arch/x86/kernel/fpu/core.c
arch/x86/kernel/fpu/init.c
arch/x86/kernel/fpu/xsave.c
arch/x86/kernel/process.c
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c
arch/x86/kernel/ptrace.c
arch/x86/kernel/signal.c
arch/x86/kernel/smpboot.c
arch/x86/kernel/traps.c
arch/x86/kvm/x86.c
arch/x86/mm/mpx.c
arch/x86/power/cpu.c

index 470522cb042a85b98d6acab7908f0797d4108220..81a595d75cf5959bbcae8c2096ebdf0f538bf7f9 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <asm/cpufeature.h>
 #include <asm/cpu_device_id.h>
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 
 #define CHKSUM_BLOCK_SIZE      1
 #define CHKSUM_DIGEST_SIZE     4
index 02b64bbc1d488f293b5d19e3bc13e11acd59a8de..03ffaf8c22442d5c7d94ea58c39aaae1854fe2de 100644 (file)
@@ -68,7 +68,7 @@
 #include <asm/xcr.h>
 #include <asm/fpu/xsave.h>
 #include <linux/hardirq.h>
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 #include "sha_mb_ctx.h"
 
 #define FLUSH_INTERVAL 1000 /* in usec */
index e1ec6f90d09e2d3915b187a03944e428f5b6e15b..d6d8f4ca5136ed6a4c72c637de7491b8f62824d0 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/binfmts.h>
 #include <asm/ucontext.h>
 #include <asm/uaccess.h>
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 #include <asm/ptrace.h>
 #include <asm/ia32_unistd.h>
 #include <asm/user32.h>
similarity index 99%
rename from arch/x86/include/asm/fpu-internal.h
rename to arch/x86/include/asm/fpu/internal.h
index 20690a14c73ad604c8f583f1d354f12d8ea1a7a8..386a8837c3584d3698c39148b9ad1ca87fc24a17 100644 (file)
@@ -7,8 +7,8 @@
  * x86-64 work by Andi Kleen 2002
  */
 
-#ifndef _FPU_INTERNAL_H
-#define _FPU_INTERNAL_H
+#ifndef _ASM_X86_FPU_INTERNAL_H
+#define _ASM_X86_FPU_INTERNAL_H
 
 #include <linux/regset.h>
 #include <linux/compat.h>
@@ -553,4 +553,4 @@ alloc_mathframe(unsigned long sp, int ia32_frame, unsigned long *buf_fx,
        return sp;
 }
 
-#endif
+#endif /* _ASM_X86_FPU_INTERNAL_H */
index 88bb7a75f5c61451615275c58d21009057de5e64..8f6a4ea39657c7e523ab9ac732bbe0e218d0e6d0 100644 (file)
@@ -31,7 +31,7 @@
 #include <asm/setup.h>
 #include <asm/apic.h>
 #include <asm/desc.h>
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 #include <asm/mtrr.h>
 #include <linux/numa.h>
 #include <asm/asm.h>
index 176f69b24358257aab468574cdb122c2205ea615..30016f03f25dbc1f5ede6dbedaac8c8c7e1943e4 100644 (file)
@@ -5,7 +5,7 @@
  *  General FPU state handling cleanups
  *     Gareth Hughes <gareth@valinux.com>, May 2000
  */
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 
 /*
  * Track whether the kernel is using the FPU state
index 4eabb426e910c52732e18553b3ed84a476f9f2cf..33df056b1624cf8be39c3a9a59a166138c48160a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * x86 FPU boot time init code
  */
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 #include <asm/tlbflush.h>
 
 /*
index 8aa3b864a2e07b577c76ee6547e6ef7a2bc4c800..4ff726e4e29bb94e96fb095007be95876f08b616 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/compat.h>
 #include <linux/cpu.h>
 #include <asm/fpu/api.h>
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 #include <asm/sigframe.h>
 #include <asm/tlbflush.h>
 #include <asm/xcr.h>
index 51ad3422e728c0dbe7597cd0f5a2a3d24d47c69a..71f4b4d2f1fdaf2ecdc50821858084c5e5670d51 100644 (file)
@@ -25,7 +25,7 @@
 #include <asm/idle.h>
 #include <asm/uaccess.h>
 #include <asm/mwait.h>
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 #include <asm/debugreg.h>
 #include <asm/nmi.h>
 #include <asm/tlbflush.h>
index 7adc314b5075212f5fc3c3223d27ad17723e5678..deff651835b4ac5ca843c08f1de806619d004cf0 100644 (file)
@@ -39,7 +39,7 @@
 #include <asm/pgtable.h>
 #include <asm/ldt.h>
 #include <asm/processor.h>
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 #include <asm/desc.h>
 #ifdef CONFIG_MATH_EMULATION
 #include <asm/math_emu.h>
index 4504569c6c4ec6c90db40cae3e49538ffb941bca..c50e013b57d20fe34b58932ce57dc671241e1435 100644 (file)
@@ -38,7 +38,7 @@
 
 #include <asm/pgtable.h>
 #include <asm/processor.h>
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 #include <asm/mmu_context.h>
 #include <asm/prctl.h>
 #include <asm/desc.h>
index 69451b8965f7b8cd348326731907de6fc381e931..c14a00f54b61bf7718e7090cdd928f5df4824583 100644 (file)
@@ -28,7 +28,7 @@
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
 #include <asm/processor.h>
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 #include <asm/debugreg.h>
 #include <asm/ldt.h>
 #include <asm/desc.h>
index bcb853e44d30289bf92345a4cfcfa1f63aafb9ab..c67f96c8793811b0ccd0acb44c772398c4faaeb3 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <asm/processor.h>
 #include <asm/ucontext.h>
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 #include <asm/vdso.h>
 #include <asm/mce.h>
 #include <asm/sighandling.h>
index 60e331ceb844c34aa7db6d2dc6018985b1f7fd99..29f105f0d9fbcb49c58c8f7969addbcd65dc5b3c 100644 (file)
@@ -68,7 +68,7 @@
 #include <asm/mwait.h>
 #include <asm/apic.h>
 #include <asm/io_apic.h>
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 #include <asm/setup.h>
 #include <asm/uv/uv.h>
 #include <linux/mc146818rtc.h>
index 8abcd6a6f3dc6dfe231c81a153375fb9327b58a8..a65586edbb57073eb2b0ce06f9f79c2f3c1a4c89 100644 (file)
@@ -54,7 +54,7 @@
 #include <asm/ftrace.h>
 #include <asm/traps.h>
 #include <asm/desc.h>
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 #include <asm/mce.h>
 #include <asm/fixmap.h>
 #include <asm/mach_traps.h>
index 479d4ce25081d8be9718aff7a657d43abfbe8dfb..91d7f3b1e50c2941088e563dfa9efc07c63fd47d 100644 (file)
@@ -60,7 +60,7 @@
 #include <asm/mtrr.h>
 #include <asm/mce.h>
 #include <linux/kernel_stat.h>
-#include <asm/fpu-internal.h> /* Ugh! */
+#include <asm/fpu/internal.h> /* Ugh! */
 #include <asm/xcr.h>
 #include <asm/pvclock.h>
 #include <asm/div64.h>
index 412b5f81e54718801170f8b83aa8e1471fa77a43..5563be313fd6da005e3a15c144a4ed080c096e44 100644 (file)
@@ -15,7 +15,7 @@
 #include <asm/mmu_context.h>
 #include <asm/mpx.h>
 #include <asm/processor.h>
-#include <asm/fpu-internal.h>
+#include <asm/fpu/internal.h>
 
 static const char *mpx_mapping_name(struct vm_area_struct *vma)
 {
index 757678fb26e1a06277687c1c90f86e75377de03a..edaf934c749e015526de891f40734cd081acd29d 100644 (file)
@@ -21,7 +21,7 @@
 #include <asm/xcr.h>
 #include <asm/suspend.h>
 #include <asm/debugreg.h>
-#include <asm/fpu-internal.h> /* pcntxt_mask */
+#include <asm/fpu/internal.h> /* pcntxt_mask */
 #include <asm/cpu.h>
 
 #ifdef CONFIG_X86_32