Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[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 <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>

authored by

Pavel Machek and committed by
Linus Torvalds
30d6b2f3 ff4547f4

+1 -1
+1 -1
arch/i386/power/cpu.c
··· 92 92 write_cr4(ctxt->cr4); 93 93 write_cr3(ctxt->cr3); 94 94 write_cr2(ctxt->cr2); 95 - write_cr2(ctxt->cr0); 95 + write_cr0(ctxt->cr0); 96 96 97 97 /* 98 98 * now restore the descriptor tables to their proper values