H. Peter Anvin a7c4c0d934 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 <hpa@zytor.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Nigel Cunningham <nigel@tuxonice.net>
LKML-Reference: <1258154897-6770-3-git-send-email-hpa@zytor.com>
Acked-by: Kees Cook <kees.cook@canonical.com>
2009-11-16 13:44:57 -08:00
..
2009-03-15 07:03:15 +01:00
2009-06-15 15:20:40 +02:00
2009-07-19 18:27:51 +02:00
2009-03-13 11:57:22 +01:00
2009-06-20 17:53:13 +02:00
2009-09-23 18:13:10 -07:00
2009-09-23 18:13:10 -07:00
2009-07-11 10:17:08 +02:00
2009-08-31 11:09:40 +02:00
2009-08-31 11:09:40 +02:00
2008-12-12 11:08:42 +01:00
2009-02-10 13:13:23 +01:00
2009-02-23 00:08:11 +01:00
2009-03-21 16:57:04 +05:30
2009-08-09 22:28:34 +02:00
2009-02-09 12:16:05 +01:00
2009-03-21 16:55:45 +05:30
2009-09-24 09:34:52 +09:30
2009-09-19 00:11:26 -04:00
2009-02-23 00:08:11 +01:00
2009-08-31 11:09:40 +02:00
2009-01-20 17:14:28 +01:00
2009-07-14 16:25:05 +02:00
2009-09-15 15:08:40 -04:00
2009-07-19 18:27:51 +02:00
2008-10-22 22:55:23 -07:00
2009-03-21 16:55:24 +05:30
2009-09-20 20:25:03 +02:00
2009-02-17 17:52:44 +01:00