x86, fpu: lazy allocation of FPU area - v5
Only allocate the FPU area when the application actually uses FPU, i.e., in the first lazy FPU trap. This could save memory for non-fpu using apps. for example: on my system after boot, there are around 300 processes, with only 17 using FPU. Signed-off-by:Suresh Siddha <suresh.b.siddha@intel.com> Cc: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by:
Ingo Molnar <mingo@elte.hu> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
Showing
- arch/x86/kernel/i387.c 30 additions, 8 deletionsarch/x86/kernel/i387.c
- arch/x86/kernel/process.c 19 additions, 9 deletionsarch/x86/kernel/process.c
- arch/x86/kernel/process_32.c 4 additions, 0 deletionsarch/x86/kernel/process_32.c
- arch/x86/kernel/process_64.c 4 additions, 0 deletionsarch/x86/kernel/process_64.c
- arch/x86/kernel/traps_32.c 15 additions, 2 deletionsarch/x86/kernel/traps_32.c
- arch/x86/kernel/traps_64.c 16 additions, 3 deletionsarch/x86/kernel/traps_64.c
- include/asm-x86/i387.h 1 addition, 1 deletioninclude/asm-x86/i387.h
- include/asm-x86/processor.h 2 additions, 0 deletionsinclude/asm-x86/processor.h
Loading