]> git.baikalelectronics.ru Git - kernel.git/commit
x86, hibernate: Initialize mmu_cr4_features during boot
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 6 Apr 2011 20:10:02 +0000 (13:10 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 6 Apr 2011 20:10:02 +0000 (13:10 -0700)
commitf325aa465c05a555a7ff58413962e0f357f3f168
treef65f18acba151b50e5f38a3273b2da732439d4ec
parent405541ab04aa50da80ef72da3d3f2b1fda273bd5
x86, hibernate: Initialize mmu_cr4_features during boot

Restore the initialization of mmu_cr4_features during boot, which was
removed without comment in checkin ccfd7fbd88bf76a27d071895ef55170ce82d1595

x86: Cleanup highmap after brk is concluded

thereby breaking resume from hibernate.  This restores previous
functionality in approximately the same place, and corrects the
reading of %cr4 on pre-CPUID hardware (%cr4 exists if and only if
CPUID is supported.)

However, part of the problem is that the hibernate suspend/resume
sequence should manage the save/restore of %cr4 explicitly.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <201104020154.57136.rjw@sisk.pl>
arch/x86/kernel/setup.c