Skip to content

Commit

Permalink
[PATCH] swsusp: fix typo in cr0 handling
Browse files Browse the repository at this point in the history
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 <pavel@suse.cz>
Cc: Zachary Amsden <zach@vmware.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Pavel Machek authored and Linus Torvalds committed May 23, 2006
1 parent ff4547f commit 30d6b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/i386/power/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30d6b2f

Please sign in to comment.