diff options
Diffstat (limited to 'arch/x86/kernel/fpu/xsave.c')
-rw-r--r-- | arch/x86/kernel/fpu/xsave.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/kernel/fpu/xsave.c b/arch/x86/kernel/fpu/xsave.c index 1d0e27128f18..a485180ebc32 100644 --- a/arch/x86/kernel/fpu/xsave.c +++ b/arch/x86/kernel/fpu/xsave.c @@ -735,6 +735,18 @@ void __init_refok eager_fpu_init(void) } /* + * Restore minimal FPU state after suspend: + */ +void fpu__resume_cpu(void) +{ + /* + * Restore XCR0 on xsave capable CPUs: + */ + if (cpu_has_xsave) + xsetbv(XCR_XFEATURE_ENABLED_MASK, xfeatures_mask); +} + +/* * Given the xsave area and a state inside, this function returns the * address of the state. * |