PM / x86: Save/restore MISC_ENABLE register
authorOndrej Zary <linux@rainbow-software.org>
Mon, 7 Jun 2010 22:32:49 +0000 (00:32 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 7 Jun 2010 22:32:49 +0000 (00:32 +0200)
commit85a0e7539781dad4bfcffd98e72fa9f130f4e40d
treec64b6526319b3e9c5a8c8592ca96988a3726b9ad
parent386f40c86d6c8d5b717ef20620af1a750d0dacb4
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>
arch/x86/include/asm/suspend_32.h
arch/x86/include/asm/suspend_64.h
arch/x86/power/cpu.c