From: Pavel Machek Date: Tue, 23 May 2006 05:35:29 +0000 (-0700) Subject: [PATCH] swsusp: fix typo in cr0 handling X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=30d6b2f3749e41ce37170ebc445948222b2db4ee;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] swsusp: fix typo in cr0 handling Writing cr0 to cr2 register can't be right. This fixes the typo. I wonder how it could survive so long. Signed-off-by: Pavel Machek Cc: Zachary Amsden Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/power/cpu.c b/arch/i386/power/cpu.c index 50a0bef8c85f..79b2370c7fac 100644 --- a/arch/i386/power/cpu.c +++ b/arch/i386/power/cpu.c @@ -92,7 +92,7 @@ void __restore_processor_state(struct saved_context *ctxt) write_cr4(ctxt->cr4); write_cr3(ctxt->cr3); write_cr2(ctxt->cr2); - write_cr2(ctxt->cr0); + write_cr0(ctxt->cr0); /* * now restore the descriptor tables to their proper values