x86, suspend: Correct the restore of CR4, EFER; skip computing EFLAGS.ID
authorH. Peter Anvin <hpa@linux.intel.com>
Mon, 1 Oct 2012 21:34:42 +0000 (14:34 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 2 Oct 2012 06:42:31 +0000 (08:42 +0200)
commit1396adc3c2bdc556d4cdd1cf107aa0b6d59fbb1e
tree7fc9ec52083551c3b1d5ea5937fa6e583ad32e07
parentb2cc2a074de75671bbed5e2dda67a9252ef353ea
x86, suspend: Correct the restore of CR4, EFER; skip computing EFLAGS.ID

The patch:

    73201dbe x86, suspend: On wakeup always initialize cr4 and EFER

... was incorrectly committed in an intermediate (unfinished) form.

- We need to test CF, not ZF, for a bit test with btl.
- We don't actually need to compute the existence of EFLAGS.ID,
  since we set a flag at suspend time if CR4 should be restored.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Link: http://lkml.kernel.org/r/1348529239-17943-1-git-send-email-hpa@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/realmode/rm/wakeup_asm.S