aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/i387.c
diff options
context:
space:
mode:
authorBrian Gerst <brgerst@gmail.com>2010-09-03 21:17:16 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2010-09-09 17:17:18 -0400
commit8eb91a577d7763d21628f6761045328784b1911c (patch)
tree1f09e4075d5c0e01958698df480cf676c5e73f8e /arch/x86/kernel/i387.c
parenta334fe43d85f570ae907acf988a053c5eff78d6e (diff)
x86, fpu: Remove unnecessary ifdefs from i387 code.
Remove ifdefs for code that the compiler can optimize away on 64-bit. Signed-off-by: Brian Gerst <brgerst@gmail.com> Acked-by: Pekka Enberg <penberg@kernel.org> Cc: Suresh Siddha <suresh.b.siddha@intel.com> LKML-Reference: <1283563039-3466-10-git-send-email-brgerst@gmail.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/i387.c')
-rw-r--r--arch/x86/kernel/i387.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/kernel/i387.c b/arch/x86/kernel/i387.c
index f3775f5ef4ab..e795e360bd50 100644
--- a/arch/x86/kernel/i387.c
+++ b/arch/x86/kernel/i387.c
@@ -79,10 +79,8 @@ static void __cpuinit init_thread_xstate(void)
79 79
80 if (cpu_has_fxsr) 80 if (cpu_has_fxsr)
81 xstate_size = sizeof(struct i387_fxsave_struct); 81 xstate_size = sizeof(struct i387_fxsave_struct);
82#ifdef CONFIG_X86_32
83 else 82 else
84 xstate_size = sizeof(struct i387_fsave_struct); 83 xstate_size = sizeof(struct i387_fsave_struct);
85#endif
86} 84}
87 85
88/* 86/*
@@ -119,12 +117,10 @@ void __cpuinit fpu_init(void)
119 117
120void fpu_finit(struct fpu *fpu) 118void fpu_finit(struct fpu *fpu)
121{ 119{
122#ifdef CONFIG_X86_32
123 if (!HAVE_HWFP) { 120 if (!HAVE_HWFP) {
124 finit_soft_fpu(&fpu->state->soft); 121 finit_soft_fpu(&fpu->state->soft);
125 return; 122 return;
126 } 123 }
127#endif
128 124
129 if (cpu_has_fxsr) { 125 if (cpu_has_fxsr) {
130 struct i387_fxsave_struct *fx = &fpu->state->fxsave; 126 struct i387_fxsave_struct *fx = &fpu->state->fxsave;