From: H. Peter Anvin Date: Fri, 13 Nov 2009 23:28:14 +0000 (-0800) Subject: x86, sleep: Always save the value of EFER X-Git-Tag: v2.6.33-rc1~374^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7c4c0d934c6cbc58de262d090d4a715445453f0;p=pandora-kernel.git x86, sleep: Always save the value of EFER Always save the value of EFER, regardless of the state of NX. Since EFER may not actually exist, use rdmsr_safe() to do so. v2: check the return value from rdmsr_safe() instead of relying on the output values being unchanged on error. Signed-off-by: H. Peter Anvin Acked-by: Rafael J. Wysocki Cc: Pavel Machek Cc: Nigel Cunningham LKML-Reference: <1258154897-6770-3-git-send-email-hpa@zytor.com> Acked-by: Kees Cook --- Reading git-diff-tree failed