Skip to content

Commit 64e83b5

Browse files
rjwysockiIngo Molnar
authored andcommitted
x86 ACPI: fix resume from suspend to RAM on uniprocessor x86-64
Since the trampoline code is now used for ACPI resume from suspend to RAM, the trampoline page tables have to be fixed up during boot not only on SMP systems, but also on UP systems that use the trampoline. Reference: http://bugzilla.kernel.org/show_bug.cgi?id=10923 Reported-by: Dionisus Torimens <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Andrew Morton <[email protected]> Cc: pm list <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent b8a0b6c commit 64e83b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/head_64.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ ident_complete:
128128
/* Fixup phys_base */
129129
addq %rbp, phys_base(%rip)
130130

131-
#ifdef CONFIG_SMP
131+
#ifdef CONFIG_X86_TRAMPOLINE
132132
addq %rbp, trampoline_level4_pgt + 0(%rip)
133133
addq %rbp, trampoline_level4_pgt + (511*8)(%rip)
134134
#endif

0 commit comments

Comments
 (0)