]> err.no Git - linux-2.6/commit
Hibernation: Use temporary page tables for kernel text mapping on x86_64
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 18 Oct 2007 10:04:54 +0000 (03:04 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:20 +0000 (14:37 -0700)
commitefa4d2fb047b25a6be67fe92178a2a78da6b3f6a
tree82f2e7bc66d3867fcd4f66c424403d35b9d49812
parentc30bb68c26ad7e9277f2d1dfed8347f329e1cf27
Hibernation: Use temporary page tables for kernel text mapping on x86_64

Use temporary page tables for the kernel text mapping during hibernation
restore on x86_64.

Without the patch, the original boot kernel's page tables that represent the
kernel text mapping are used while the core of the image kernel is being
restored.  However, in principle, if the boot kernel is not identical to the
image kernel, the location of these page tables in the image kernel need not
be the same, so we should create a safe copy of the kernel text mapping prior
to restoring the core of the image kernel.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/suspend_64.c