]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Hibernation: Pass CR3 in the image header 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:19 +0000 (14:37 -0700)
commitc30bb68c26ad7e9277f2d1dfed8347f329e1cf27
tree6609a9a69446f58d076dadd452b250db732be47b
parentd158cbdf39ffaec9dd5299fdfdfdd2c7897a71dc
Hibernation: Pass CR3 in the image header on x86_64

Since we already pass the address of restore_registers() in the image header,
we can also pass the value of the CR3 register from before the hibernation in
the same way.  This will allow us to avoid using init_level4_pgt page tables
during the restore.

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
arch/x86/kernel/suspend_asm_64.S