diff options
Diffstat (limited to 'arch/x86/power/cpu_32.c')
| -rw-r--r-- | arch/x86/power/cpu_32.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/power/cpu_32.c b/arch/x86/power/cpu_32.c index d3e083dea720..274d06082f48 100644 --- a/arch/x86/power/cpu_32.c +++ b/arch/x86/power/cpu_32.c | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | #include <linux/suspend.h> | 11 | #include <linux/suspend.h> |
| 12 | #include <asm/mtrr.h> | 12 | #include <asm/mtrr.h> |
| 13 | #include <asm/mce.h> | 13 | #include <asm/mce.h> |
| 14 | #include <asm/xcr.h> | ||
| 14 | 15 | ||
| 15 | static struct saved_context saved_context; | 16 | static struct saved_context saved_context; |
| 16 | 17 | ||
| @@ -126,6 +127,12 @@ static void __restore_processor_state(struct saved_context *ctxt) | |||
| 126 | if (boot_cpu_has(X86_FEATURE_SEP)) | 127 | if (boot_cpu_has(X86_FEATURE_SEP)) |
| 127 | enable_sep_cpu(); | 128 | enable_sep_cpu(); |
| 128 | 129 | ||
| 130 | /* | ||
| 131 | * restore XCR0 for xsave capable cpu's. | ||
| 132 | */ | ||
| 133 | if (cpu_has_xsave) | ||
| 134 | xsetbv(XCR_XFEATURE_ENABLED_MASK, pcntxt_mask); | ||
| 135 | |||
| 129 | fix_processor_context(); | 136 | fix_processor_context(); |
| 130 | do_fpu_end(); | 137 | do_fpu_end(); |
| 131 | mtrr_ap_init(); | 138 | mtrr_ap_init(); |
