x86/fpu, sched: Introduce CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT and use it on x86
Don't burden architectures without dynamic task_struct sizing with the overhead of dynamic sizing. Also optimize the x86 code a bit by caching task_struct_size. Acked-and-Tested-by:Dave Hansen <dave.hansen@linux.intel.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Dave Hansen <dave@sr71.net> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1437128892-9831-3-git-send-email-mingo@kernel.org Signed-off-by:
Ingo Molnar <mingo@kernel.org>
Showing
- arch/Kconfig 4 additions, 0 deletionsarch/Kconfig
- arch/x86/Kconfig 1 addition, 0 deletionsarch/x86/Kconfig
- arch/x86/kernel/fpu/init.c 9 additions, 8 deletionsarch/x86/kernel/fpu/init.c
- arch/x86/kernel/process.c 1 addition, 1 deletionarch/x86/kernel/process.c
- fs/proc/kcore.c 2 additions, 2 deletionsfs/proc/kcore.c
- include/linux/sched.h 5 additions, 1 deletioninclude/linux/sched.h
- kernel/fork.c 5 additions, 6 deletionskernel/fork.c
Loading
Please register or sign in to comment