Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/fpu: Rename i387.h to fpu/api.h

We already have fpu/types.h, move i387.h to fpu/api.h.

The file name has become a misnomer anyway: it offers generic FPU APIs,
but is not limited to i387 functionality.

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>

+32 -32
+1 -1
arch/x86/crypto/aesni-intel_glue.c
··· 32 32 #include <crypto/lrw.h> 33 33 #include <crypto/xts.h> 34 34 #include <asm/cpu_device_id.h> 35 - #include <asm/i387.h> 35 + #include <asm/fpu/api.h> 36 36 #include <asm/crypto/aes.h> 37 37 #include <crypto/ablk_helper.h> 38 38 #include <crypto/scatterwalk.h>
+1 -1
arch/x86/crypto/crc32-pclmul_glue.c
··· 35 35 36 36 #include <asm/cpufeature.h> 37 37 #include <asm/cpu_device_id.h> 38 - #include <asm/i387.h> 38 + #include <asm/fpu/api.h> 39 39 40 40 #define CHKSUM_BLOCK_SIZE 1 41 41 #define CHKSUM_DIGEST_SIZE 4
+1 -1
arch/x86/crypto/crct10dif-pclmul_glue.c
··· 29 29 #include <linux/init.h> 30 30 #include <linux/string.h> 31 31 #include <linux/kernel.h> 32 - #include <asm/i387.h> 32 + #include <asm/fpu/api.h> 33 33 #include <asm/cpufeature.h> 34 34 #include <asm/cpu_device_id.h> 35 35
+1 -1
arch/x86/crypto/fpu.c
··· 18 18 #include <linux/module.h> 19 19 #include <linux/slab.h> 20 20 #include <linux/crypto.h> 21 - #include <asm/i387.h> 21 + #include <asm/fpu/api.h> 22 22 23 23 struct crypto_fpu_ctx { 24 24 struct crypto_blkcipher *child;
+1 -1
arch/x86/crypto/ghash-clmulni-intel_glue.c
··· 19 19 #include <crypto/cryptd.h> 20 20 #include <crypto/gf128mul.h> 21 21 #include <crypto/internal/hash.h> 22 - #include <asm/i387.h> 22 + #include <asm/fpu/api.h> 23 23 #include <asm/cpu_device_id.h> 24 24 25 25 #define GHASH_BLOCK_SIZE 16
+1 -1
arch/x86/crypto/sha1_ssse3_glue.c
··· 29 29 #include <linux/types.h> 30 30 #include <crypto/sha.h> 31 31 #include <crypto/sha1_base.h> 32 - #include <asm/i387.h> 32 + #include <asm/fpu/api.h> 33 33 #include <asm/xcr.h> 34 34 #include <asm/xsave.h> 35 35
+1 -1
arch/x86/crypto/sha256_ssse3_glue.c
··· 37 37 #include <linux/types.h> 38 38 #include <crypto/sha.h> 39 39 #include <crypto/sha256_base.h> 40 - #include <asm/i387.h> 40 + #include <asm/fpu/api.h> 41 41 #include <asm/xcr.h> 42 42 #include <asm/xsave.h> 43 43 #include <linux/string.h>
+1 -1
arch/x86/crypto/sha512_ssse3_glue.c
··· 35 35 #include <linux/types.h> 36 36 #include <crypto/sha.h> 37 37 #include <crypto/sha512_base.h> 38 - #include <asm/i387.h> 38 + #include <asm/fpu/api.h> 39 39 #include <asm/xcr.h> 40 40 #include <asm/xsave.h> 41 41
+1 -1
arch/x86/crypto/twofish_avx_glue.c
··· 36 36 #include <crypto/ctr.h> 37 37 #include <crypto/lrw.h> 38 38 #include <crypto/xts.h> 39 - #include <asm/i387.h> 39 + #include <asm/fpu/api.h> 40 40 #include <asm/xcr.h> 41 41 #include <asm/xsave.h> 42 42 #include <asm/crypto/twofish.h>
+1 -1
arch/x86/include/asm/crypto/glue_helper.h
··· 7 7 8 8 #include <linux/kernel.h> 9 9 #include <linux/crypto.h> 10 - #include <asm/i387.h> 10 + #include <asm/fpu/api.h> 11 11 #include <crypto/b128ops.h> 12 12 13 13 typedef void (*common_glue_func_t)(void *ctx, u8 *dst, const u8 *src);
+1 -1
arch/x86/include/asm/efi.h
··· 1 1 #ifndef _ASM_X86_EFI_H 2 2 #define _ASM_X86_EFI_H 3 3 4 - #include <asm/i387.h> 4 + #include <asm/fpu/api.h> 5 5 #include <asm/pgtable.h> 6 6 7 7 /*
+1 -1
arch/x86/include/asm/fpu-internal.h
··· 15 15 #include <linux/slab.h> 16 16 17 17 #include <asm/user.h> 18 - #include <asm/i387.h> 18 + #include <asm/fpu/api.h> 19 19 #include <asm/xsave.h> 20 20 21 21 #ifdef CONFIG_X86_64
+3 -3
arch/x86/include/asm/i387.h arch/x86/include/asm/fpu/api.h
··· 7 7 * x86-64 work by Andi Kleen 2002 8 8 */ 9 9 10 - #ifndef _ASM_X86_I387_H 11 - #define _ASM_X86_I387_H 10 + #ifndef _ASM_X86_FPU_API_H 11 + #define _ASM_X86_FPU_API_H 12 12 13 13 #ifndef __ASSEMBLY__ 14 14 ··· 104 104 105 105 #endif /* __ASSEMBLY__ */ 106 106 107 - #endif /* _ASM_X86_I387_H */ 107 + #endif /* _ASM_X86_FPU_API_H */
+1 -1
arch/x86/include/asm/simd.h
··· 1 1 2 - #include <asm/i387.h> 2 + #include <asm/fpu/api.h> 3 3 4 4 /* 5 5 * may_use_simd - whether it is allowable at this time to issue SIMD
+1 -1
arch/x86/include/asm/suspend_32.h
··· 7 7 #define _ASM_X86_SUSPEND_32_H 8 8 9 9 #include <asm/desc.h> 10 - #include <asm/i387.h> 10 + #include <asm/fpu/api.h> 11 11 12 12 /* image of the saved processor state */ 13 13 struct saved_context {
+1 -1
arch/x86/include/asm/suspend_64.h
··· 7 7 #define _ASM_X86_SUSPEND_64_H 8 8 9 9 #include <asm/desc.h> 10 - #include <asm/i387.h> 10 + #include <asm/fpu/api.h> 11 11 12 12 /* 13 13 * Image of the saved processor state, used by the low level ACPI suspend to
+1 -1
arch/x86/include/asm/xor.h
··· 36 36 * no advantages to be gotten from x86-64 here anyways. 37 37 */ 38 38 39 - #include <asm/i387.h> 39 + #include <asm/fpu/api.h> 40 40 41 41 #ifdef CONFIG_X86_32 42 42 /* reduce register pressure */
+1 -1
arch/x86/include/asm/xor_32.h
··· 26 26 #define XO3(x, y) " pxor 8*("#x")(%4), %%mm"#y" ;\n" 27 27 #define XO4(x, y) " pxor 8*("#x")(%5), %%mm"#y" ;\n" 28 28 29 - #include <asm/i387.h> 29 + #include <asm/fpu/api.h> 30 30 31 31 static void 32 32 xor_pII_mmx_2(unsigned long bytes, unsigned long *p1, unsigned long *p2)
+1 -1
arch/x86/include/asm/xor_avx.h
··· 18 18 #ifdef CONFIG_AS_AVX 19 19 20 20 #include <linux/compiler.h> 21 - #include <asm/i387.h> 21 + #include <asm/fpu/api.h> 22 22 23 23 #define BLOCK4(i) \ 24 24 BLOCK(32 * i, 0) \
+1 -1
arch/x86/kernel/cpu/bugs.c
··· 12 12 #include <asm/bugs.h> 13 13 #include <asm/processor.h> 14 14 #include <asm/processor-flags.h> 15 - #include <asm/i387.h> 15 + #include <asm/fpu/api.h> 16 16 #include <asm/msr.h> 17 17 #include <asm/paravirt.h> 18 18 #include <asm/alternative.h>
+1 -1
arch/x86/kernel/fpu/xsave.c
··· 9 9 #include <linux/bootmem.h> 10 10 #include <linux/compat.h> 11 11 #include <linux/cpu.h> 12 - #include <asm/i387.h> 12 + #include <asm/fpu/api.h> 13 13 #include <asm/fpu-internal.h> 14 14 #include <asm/sigframe.h> 15 15 #include <asm/tlbflush.h>
+1 -1
arch/x86/kvm/vmx.c
··· 40 40 #include <asm/vmx.h> 41 41 #include <asm/virtext.h> 42 42 #include <asm/mce.h> 43 - #include <asm/i387.h> 43 + #include <asm/fpu/api.h> 44 44 #include <asm/xcr.h> 45 45 #include <asm/perf_event.h> 46 46 #include <asm/debugreg.h>
+1 -1
arch/x86/lguest/boot.c
··· 70 70 #include <asm/e820.h> 71 71 #include <asm/mce.h> 72 72 #include <asm/io.h> 73 - #include <asm/i387.h> 73 + #include <asm/fpu/api.h> 74 74 #include <asm/stackprotector.h> 75 75 #include <asm/reboot.h> /* for struct machine_ops */ 76 76 #include <asm/kvm_para.h>
+1 -1
arch/x86/lib/mmx_32.c
··· 22 22 #include <linux/sched.h> 23 23 #include <linux/types.h> 24 24 25 - #include <asm/i387.h> 25 + #include <asm/fpu/api.h> 26 26 #include <asm/asm.h> 27 27 28 28 void *_mmx_memcpy(void *to, const void *from, size_t len)
+1 -1
arch/x86/math-emu/fpu_entry.c
··· 31 31 #include <asm/traps.h> 32 32 #include <asm/desc.h> 33 33 #include <asm/user.h> 34 - #include <asm/i387.h> 34 + #include <asm/fpu/api.h> 35 35 36 36 #include "fpu_system.h" 37 37 #include "fpu_emu.h"
+1 -1
drivers/char/hw_random/via-rng.c
··· 33 33 #include <asm/io.h> 34 34 #include <asm/msr.h> 35 35 #include <asm/cpufeature.h> 36 - #include <asm/i387.h> 36 + #include <asm/fpu/api.h> 37 37 38 38 39 39
+1 -1
drivers/crypto/padlock-aes.c
··· 22 22 #include <asm/cpu_device_id.h> 23 23 #include <asm/byteorder.h> 24 24 #include <asm/processor.h> 25 - #include <asm/i387.h> 25 + #include <asm/fpu/api.h> 26 26 27 27 /* 28 28 * Number of data blocks actually fetched for each xcrypt insn.
+1 -1
drivers/crypto/padlock-sha.c
··· 23 23 #include <linux/kernel.h> 24 24 #include <linux/scatterlist.h> 25 25 #include <asm/cpu_device_id.h> 26 - #include <asm/i387.h> 26 + #include <asm/fpu/api.h> 27 27 28 28 struct padlock_sha_desc { 29 29 struct shash_desc fallback;
+1 -1
drivers/lguest/x86/core.c
··· 46 46 #include <asm/setup.h> 47 47 #include <asm/lguest.h> 48 48 #include <asm/uaccess.h> 49 - #include <asm/i387.h> 49 + #include <asm/fpu/api.h> 50 50 #include <asm/tlbflush.h> 51 51 #include "../lg.h" 52 52
+1 -1
lib/raid6/x86.h
··· 23 23 24 24 #ifdef __KERNEL__ /* Real code */ 25 25 26 - #include <asm/i387.h> 26 + #include <asm/fpu/api.h> 27 27 28 28 #else /* Dummy code for user space testing */ 29 29