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>
This commit is contained in:

committed by
H. Peter Anvin

parent
d683b96b07
commit
60e019eb37
@@ -1410,7 +1410,7 @@ __init void lguest_init(void)
|
||||
new_cpu_data.x86_capability[0] = cpuid_edx(1);
|
||||
|
||||
/* Math is always hard! */
|
||||
new_cpu_data.hard_math = 1;
|
||||
set_cpu_cap(&new_cpu_data, X86_FEATURE_FPU);
|
||||
|
||||
/* We don't have features. We have puppies! Puppies! */
|
||||
#ifdef CONFIG_X86_MCE
|
||||
|
Reference in New Issue
Block a user