summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/suspend_64.h
diff options
context:
space:
mode:
authorOndrej Zary2010-06-08 00:32:49 +0200
committerRafael J. Wysocki2010-06-08 00:32:49 +0200
commit85a0e7539781dad4bfcffd98e72fa9f130f4e40d (patch)
treec64b6526319b3e9c5a8c8592ca96988a3726b9ad /arch/x86/include/asm/suspend_64.h
parentRevert "tty: fix a little bug in scrup, vt.c" (diff)
downloadkernel-qcow2-linux-85a0e7539781dad4bfcffd98e72fa9f130f4e40d.tar.gz
kernel-qcow2-linux-85a0e7539781dad4bfcffd98e72fa9f130f4e40d.tar.xz
kernel-qcow2-linux-85a0e7539781dad4bfcffd98e72fa9f130f4e40d.zip
PM / x86: Save/restore MISC_ENABLE register
Save/restore MISC_ENABLE register on suspend/resume. This fixes OOPS (invalid opcode) on resume from STR on Asus P4P800-VM, which wakes up with MWAIT disabled. Fixes https://bugzilla.kernel.org/show_bug.cgi?id=15385 Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Tested-by: Alan Stern <stern@rowland.harvard.edu> Acked-by: H. Peter Anvin <hpa@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/x86/include/asm/suspend_64.h')
-rw-r--r--arch/x86/include/asm/suspend_64.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/suspend_64.h b/arch/x86/include/asm/suspend_64.h
index 06284f42b759..8d942afae681 100644
--- a/arch/x86/include/asm/suspend_64.h
+++ b/arch/x86/include/asm/suspend_64.h
@@ -27,6 +27,8 @@ struct saved_context {
u16 ds, es, fs, gs, ss;
unsigned long gs_base, gs_kernel_base, fs_base;
unsigned long cr0, cr2, cr3, cr4, cr8;
+ u64 misc_enable;
+ bool misc_enable_saved;
unsigned long efer;
u16 gdt_pad;
u16 gdt_limit;