From: Oleg Nesterov Date: Fri, 13 Mar 2015 18:27:16 +0000 (+0100) Subject: x86/fpu: Don't allocate fpu->state for swapper/0 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4bd5bf8c85e6bca5be9e7c4b3d7ad1942ae323f3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git x86/fpu: Don't allocate fpu->state for swapper/0 Now that kthreads do not use FPU until they get executed, swapper/0 doesn't need to allocate fpu->state. Signed-off-by: Oleg Nesterov Signed-off-by: Borislav Petkov Cc: Andy Lutomirski Cc: Dave Hansen Cc: Fenghua Yu Cc: Linus Torvalds Cc: Pekka Riikonen Cc: Quentin Casasnovas Cc: Rik van Riel Cc: Suresh Siddha Link: http://lkml.kernel.org/r/20150313182716.GB8249@redhat.com Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/xsave.c b/arch/x86/kernel/xsave.c index 65c29b070e09..ada8df7b89c0 100644 --- a/arch/x86/kernel/xsave.c +++ b/arch/x86/kernel/xsave.c @@ -680,8 +680,6 @@ void xsave_init(void) static inline void __init eager_fpu_init_bp(void) { - current->thread.fpu.state = - alloc_bootmem_align(xstate_size, __alignof__(struct xsave_struct)); if (!init_xstate_buf) setup_init_fpu_buf(); }