diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2008-07-29 13:29:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-30 13:49:24 -0400 |
commit | dc1e35c6e95e8923cf1d3510438b63c600fee1e2 (patch) | |
tree | 4348f51f1bfdd124efd6d16dcc552bd4a148fdfb /arch/x86/kernel/cpu/common.c | |
parent | a648bf4632628c787abb0514277f2a231fca39ca (diff) |
x86, xsave: enable xsave/xrstor on cpus with xsave support
Enables xsave/xrstor by turning on cr4.osxsave on cpu's which have
the xsave support. For now, features that OS supports/enabled are
FP and SSE.
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 80ab20d4fa39..fabbcb7020fb 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -712,6 +712,14 @@ void __cpuinit cpu_init(void) | |||
712 | current_thread_info()->status = 0; | 712 | current_thread_info()->status = 0; |
713 | clear_used_math(); | 713 | clear_used_math(); |
714 | mxcsr_feature_mask_init(); | 714 | mxcsr_feature_mask_init(); |
715 | |||
716 | /* | ||
717 | * Boot processor to setup the FP and extended state context info. | ||
718 | */ | ||
719 | if (!smp_processor_id()) | ||
720 | init_thread_xstate(); | ||
721 | |||
722 | xsave_init(); | ||
715 | } | 723 | } |
716 | 724 | ||
717 | #ifdef CONFIG_HOTPLUG_CPU | 725 | #ifdef CONFIG_HOTPLUG_CPU |