diff --git a/arch/x86/power/cpu.c b/arch/x86/power/cpu.c index 87bb35e..69dbf42 100644 --- a/arch/x86/power/cpu.c +++ b/arch/x86/power/cpu.c @@ -98,13 +98,12 @@ static void __save_processor_state(struct saved_context *ctxt) ctxt->cr0 = read_cr0(); ctxt->cr2 = read_cr2(); ctxt->cr3 = read_cr3(); -#ifdef CONFIG_X86_32 ctxt->cr4 = read_cr4_safe(); -#else -/* CONFIG_X86_64 */ - ctxt->cr4 = read_cr4(); + mmu_cr4_features = ctxt->cr4; +#ifdef CONFIG_X86_64 ctxt->cr8 = read_cr8(); #endif + ctxt->misc_enable_saved = !rdmsrl_safe(MSR_IA32_MISC_ENABLE, &ctxt->misc_enable); }