On Sun, Aug 29, 2010 at 3:00 PM, Pekka Enberg<penberg@xxxxxxxxxx> wrote:Yes, I realize that but it will still read boot_cpu_data at runtime, no?On Sat, Aug 28, 2010 at 7:04 PM, Brian Gerst<brgerst@xxxxxxxxx> wrote:FXSR is a required feature on 64-bit, therefore cpu_has_fxsr is always true.Remove ifdefs for code that the compiler can optimize away on 64-bit.I guess this is OK but keep in mind that cpu_has_fsxr is _not_
Signed-off-by: Brian Gerst<brgerst@xxxxxxxxx>
@@ -74,10 +74,8 @@ static void __cpuinit init_thread_xstate(void)
if (cpu_has_fxsr)
xstate_size = sizeof(struct i387_fxsave_struct);
-#ifdef CONFIG_X86_32
else
xstate_size = sizeof(struct i387_fsave_struct);
-#endif
}
optimized by the compiler on 64-bit so the change probably increases
kernel text by few bytes.