Skip to content

Commit 4a9c752

Browse files
heicarstMartin Schwidefsky
authored andcommitted
[S390] pm: fix build error for !SMP
Fix build error for !SMP: arch/s390/power/built-in.o: In function `swsusp_arch_resume': (.text+0x1b4): undefined reference to `smp_get_phys_cpu_id' arch/s390/power/built-in.o: In function `swsusp_arch_resume': (.text+0x288): undefined reference to `smp_switch_boot_cpu_in_resume' make: *** [.tmp_vmlinux1] Error 1 Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent e6125fb commit 4a9c752

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎arch/s390/power/swsusp_asm64.S‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,11 @@ swsusp_arch_resume:
109109
aghi %r15,-STACK_FRAME_OVERHEAD
110110
stg %r1,__SF_BACKCHAIN(%r15)
111111

112+
#ifdef CONFIG_SMP
112113
/* Save boot cpu number */
113114
brasl %r14,smp_get_phys_cpu_id
114115
lgr %r10,%r2
115-
116+
#endif
116117
/* Deactivate DAT */
117118
stnsm __SF_EMPTY(%r15),0xfb
118119

@@ -177,11 +178,12 @@ swsusp_arch_resume:
177178
/* Pointer to save arae */
178179
lghi %r13,0x1000
179180

181+
#ifdef CONFIG_SMP
180182
/* Switch CPUs */
181183
lgr %r2,%r10 /* get cpu id */
182184
llgf %r3,0x318(%r13)
183185
brasl %r14,smp_switch_boot_cpu_in_resume
184-
186+
#endif
185187
/* Restore prefix register */
186188
spx 0x318(%r13)
187189

0 commit comments

Comments
 (0)