x86, fpu: lazy allocation of FPU area - v5
authorSuresh Siddha <suresh.b.siddha@intel.com>
Mon, 10 Mar 2008 22:28:05 +0000 (15:28 -0700)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:19:55 +0000 (19:19 +0200)
commitaa283f49276e7d840a40fb01eee6de97eaa7e012
treeb17b134b174666e482b1a8ad486436a3d5cdb83e
parent61c4628b538608c1a85211ed8438136adfeb9a95
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>
arch/x86/kernel/i387.c
arch/x86/kernel/process.c
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c
arch/x86/kernel/traps_32.c
arch/x86/kernel/traps_64.c
include/asm-x86/i387.h
include/asm-x86/processor.h