]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/x86/kernel/cpu/common.c
x86: Get rid of ->hard_math and all the FPU asm fu
authorH. Peter Anvin <hpa@zytor.com>
Mon, 29 Apr 2013 14:04:20 +0000 (16:04 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 6 Jun 2013 21:32:04 +0000 (14:32 -0700)
commit60e019eb37a8d989031ad47ae9810453536f3127
treec9db47f4c97862b46a2a1481d35e89ee9358ed6a
parentd683b96b072dc4680fc74964eca77e6a23d1fa6e
x86: Get rid of ->hard_math and all the FPU asm fu

Reimplement FPU detection code in C and drop old, not-so-recommended
detection method in asm. Move all the relevant stuff into i387.c where
it conceptually belongs. Finally drop cpuinfo_x86.hard_math.

[ hpa: huge thanks to Borislav for taking my original concept patch
  and productizing it ]

[ Boris, note to self: do not use static_cpu_has before alternatives! ]

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/r/1367244262-29511-2-git-send-email-bp@alien8.de
Link: http://lkml.kernel.org/r/1365436666-9837-2-git-send-email-bp@alien8.de
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 files changed:
arch/x86/include/asm/fpu-internal.h
arch/x86/include/asm/processor.h
arch/x86/kernel/asm-offsets_32.c
arch/x86/kernel/cpu/bugs.c
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/cyrix.c
arch/x86/kernel/cpu/proc.c
arch/x86/kernel/head_32.S
arch/x86/kernel/i387.c
arch/x86/kernel/xsave.c
arch/x86/lguest/boot.c
arch/x86/xen/enlighten.c