public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH urgent] x86: Save cr4 to mmu_cr4_features at boot time
@ 2011-03-31 16:38 Stefano Stabellini
  2011-04-01  6:23 ` Ingo Molnar
  0 siblings, 1 reply; 18+ messages in thread
From: Stefano Stabellini @ 2011-03-31 16:38 UTC (permalink / raw)
  To: H. Peter Anvin
  Cc: x86, yinghai, linux-kernel, Stefano Stabellini, Greg KH,
	lkml20101129

Save cr4 to mmu_cr4_features at boot time

This patch fixes a freeze when resuming from hibernation, introduced by
"x86: Cleanup highmap after brk is concluded", commit id
e5f15b45ddf3afa2bbbb10c7ea34fb32b6de0a0e.
This patch should be backported to all the stable tree where the
offending commit is present.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Tested-by: Michael Leun <lkml20101129@newton.leun.net>
CC: Yinghai Lu <yinghai@kernel.org>
CC: stable <stable@kernel.org>

diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 5a0484a..0943eb2 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -891,6 +891,7 @@ void __init setup_arch(char **cmdline_p)
 		max_low_pfn = max_pfn;
 
 	high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1;
+	mmu_cr4_features = read_cr4();
 #endif
 
 	/*

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2011-04-11 23:13 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-31 16:38 [PATCH urgent] x86: Save cr4 to mmu_cr4_features at boot time Stefano Stabellini
2011-04-01  6:23 ` Ingo Molnar
2011-04-01 11:30   ` Stefano Stabellini
2011-04-01 18:51     ` H. Peter Anvin
2011-04-01 19:08     ` Ingo Molnar
2011-04-01 20:59       ` [stable] " Greg KH
2011-04-01 22:57       ` Stefano Stabellini
2011-04-04 15:11         ` Ingo Molnar
2011-04-04 15:47           ` Stefano Stabellini
2011-04-04 16:25             ` Ingo Molnar
2011-04-05  6:29               ` Rafael J. Wysocki
2011-04-05  6:37                 ` H. Peter Anvin
2011-04-05  6:43                   ` Rafael J. Wysocki
2011-04-05  6:55                     ` H. Peter Anvin
2011-04-05 23:47                     ` H. Peter Anvin
2011-04-06  4:34                       ` Rafael J. Wysocki
2011-04-06  4:45                         ` H. Peter Anvin
2011-04-11 23:04   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox