Skip to contentSkip to conversation

swsusp: fix typo in cr0 handling

PATCH New Pavel Machek 1 participant 1 message May 12, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

arch/i386/power/cpu.c +1 -1
index 50a0bef..79b2370 100644
@@ -92,7 +92,7 @@ void __restore_processor_state(struct sa
 	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
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html