Skip to content

Commit

Permalink
x86/fpu: Rename i387.h to fpu/api.h
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Ingo Molnar committed May 19, 2015
1 parent e11267c commit df6b35f
Show file tree
Hide file tree
Showing 30 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion arch/x86/crypto/aesni-intel_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <crypto/lrw.h>
#include <crypto/xts.h>
#include <asm/cpu_device_id.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/crypto/aes.h>
#include <crypto/ablk_helper.h>
#include <crypto/scatterwalk.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/crypto/crc32-pclmul_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#include <asm/cpufeature.h>
#include <asm/cpu_device_id.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>

#define CHKSUM_BLOCK_SIZE 1
#define CHKSUM_DIGEST_SIZE 4
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/crypto/crct10dif-pclmul_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <linux/init.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/cpufeature.h>
#include <asm/cpu_device_id.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/x86/crypto/fpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/crypto.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>

struct crypto_fpu_ctx {
struct crypto_blkcipher *child;
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/crypto/ghash-clmulni-intel_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <crypto/cryptd.h>
#include <crypto/gf128mul.h>
#include <crypto/internal/hash.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/cpu_device_id.h>

#define GHASH_BLOCK_SIZE 16
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/crypto/sha1_ssse3_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <linux/types.h>
#include <crypto/sha.h>
#include <crypto/sha1_base.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/xcr.h>
#include <asm/xsave.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/x86/crypto/sha256_ssse3_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <linux/types.h>
#include <crypto/sha.h>
#include <crypto/sha256_base.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/xcr.h>
#include <asm/xsave.h>
#include <linux/string.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/crypto/sha512_ssse3_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <linux/types.h>
#include <crypto/sha.h>
#include <crypto/sha512_base.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/xcr.h>
#include <asm/xsave.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/x86/crypto/twofish_avx_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <crypto/ctr.h>
#include <crypto/lrw.h>
#include <crypto/xts.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/xcr.h>
#include <asm/xsave.h>
#include <asm/crypto/twofish.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/crypto/glue_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <linux/kernel.h>
#include <linux/crypto.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <crypto/b128ops.h>

typedef void (*common_glue_func_t)(void *ctx, u8 *dst, const u8 *src);
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/efi.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _ASM_X86_EFI_H
#define _ASM_X86_EFI_H

#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/pgtable.h>

/*
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/fpu-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <linux/slab.h>

#include <asm/user.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/xsave.h>

#ifdef CONFIG_X86_64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* x86-64 work by Andi Kleen 2002
*/

#ifndef _ASM_X86_I387_H
#define _ASM_X86_I387_H
#ifndef _ASM_X86_FPU_API_H
#define _ASM_X86_FPU_API_H

#ifndef __ASSEMBLY__

Expand Down Expand Up @@ -104,4 +104,4 @@ extern void fpu__save(struct fpu *fpu);

#endif /* __ASSEMBLY__ */

#endif /* _ASM_X86_I387_H */
#endif /* _ASM_X86_FPU_API_H */
2 changes: 1 addition & 1 deletion arch/x86/include/asm/simd.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#include <asm/i387.h>
#include <asm/fpu/api.h>

/*
* may_use_simd - whether it is allowable at this time to issue SIMD
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/suspend_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define _ASM_X86_SUSPEND_32_H

#include <asm/desc.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>

/* image of the saved processor state */
struct saved_context {
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/suspend_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define _ASM_X86_SUSPEND_64_H

#include <asm/desc.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>

/*
* Image of the saved processor state, used by the low level ACPI suspend to
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/xor.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* no advantages to be gotten from x86-64 here anyways.
*/

#include <asm/i387.h>
#include <asm/fpu/api.h>

#ifdef CONFIG_X86_32
/* reduce register pressure */
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/xor_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define XO3(x, y) " pxor 8*("#x")(%4), %%mm"#y" ;\n"
#define XO4(x, y) " pxor 8*("#x")(%5), %%mm"#y" ;\n"

#include <asm/i387.h>
#include <asm/fpu/api.h>

static void
xor_pII_mmx_2(unsigned long bytes, unsigned long *p1, unsigned long *p2)
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/xor_avx.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifdef CONFIG_AS_AVX

#include <linux/compiler.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>

#define BLOCK4(i) \
BLOCK(32 * i, 0) \
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/bugs.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <asm/bugs.h>
#include <asm/processor.h>
#include <asm/processor-flags.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/msr.h>
#include <asm/paravirt.h>
#include <asm/alternative.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/fpu/xsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <linux/bootmem.h>
#include <linux/compat.h>
#include <linux/cpu.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/fpu-internal.h>
#include <asm/sigframe.h>
#include <asm/tlbflush.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <asm/vmx.h>
#include <asm/virtext.h>
#include <asm/mce.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/xcr.h>
#include <asm/perf_event.h>
#include <asm/debugreg.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/lguest/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
#include <asm/e820.h>
#include <asm/mce.h>
#include <asm/io.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/stackprotector.h>
#include <asm/reboot.h> /* for struct machine_ops */
#include <asm/kvm_para.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/lib/mmx_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <linux/sched.h>
#include <linux/types.h>

#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/asm.h>

void *_mmx_memcpy(void *to, const void *from, size_t len)
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/math-emu/fpu_entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <asm/traps.h>
#include <asm/desc.h>
#include <asm/user.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>

#include "fpu_system.h"
#include "fpu_emu.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/hw_random/via-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <asm/io.h>
#include <asm/msr.h>
#include <asm/cpufeature.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>



Expand Down
2 changes: 1 addition & 1 deletion drivers/crypto/padlock-aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <asm/cpu_device_id.h>
#include <asm/byteorder.h>
#include <asm/processor.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>

/*
* Number of data blocks actually fetched for each xcrypt insn.
Expand Down
2 changes: 1 addition & 1 deletion drivers/crypto/padlock-sha.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <linux/kernel.h>
#include <linux/scatterlist.h>
#include <asm/cpu_device_id.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>

struct padlock_sha_desc {
struct shash_desc fallback;
Expand Down
2 changes: 1 addition & 1 deletion drivers/lguest/x86/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include <asm/setup.h>
#include <asm/lguest.h>
#include <asm/uaccess.h>
#include <asm/i387.h>
#include <asm/fpu/api.h>
#include <asm/tlbflush.h>
#include "../lg.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/raid6/x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#ifdef __KERNEL__ /* Real code */

#include <asm/i387.h>
#include <asm/fpu/api.h>

#else /* Dummy code for user space testing */

Expand Down

0 comments on commit df6b35f

Please sign in to comment.