diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2008-03-10 18:28:05 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:19:55 -0400 |
commit | aa283f49276e7d840a40fb01eee6de97eaa7e012 (patch) | |
tree | b17b134b174666e482b1a8ad486436a3d5cdb83e /include/asm-x86/processor.h | |
parent | 61c4628b538608c1a85211ed8438136adfeb9a95 (diff) |
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>
Diffstat (limited to 'include/asm-x86/processor.h')
-rw-r--r-- | include/asm-x86/processor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h index 99d297885780..e6bf92ddeb21 100644 --- a/include/asm-x86/processor.h +++ b/include/asm-x86/processor.h | |||
@@ -366,6 +366,8 @@ DECLARE_PER_CPU(struct orig_ist, orig_ist); | |||
366 | 366 | ||
367 | extern void print_cpu_info(struct cpuinfo_x86 *); | 367 | extern void print_cpu_info(struct cpuinfo_x86 *); |
368 | extern unsigned int xstate_size; | 368 | extern unsigned int xstate_size; |
369 | extern void free_thread_xstate(struct task_struct *); | ||
370 | extern struct kmem_cache *task_xstate_cachep; | ||
369 | extern void init_scattered_cpuid_features(struct cpuinfo_x86 *c); | 371 | extern void init_scattered_cpuid_features(struct cpuinfo_x86 *c); |
370 | extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c); | 372 | extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c); |
371 | extern unsigned short num_cache_leaves; | 373 | extern unsigned short num_cache_leaves; |