提交 4a9c7525 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

[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: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 e6125fba
...@@ -109,10 +109,11 @@ swsusp_arch_resume: ...@@ -109,10 +109,11 @@ swsusp_arch_resume:
aghi %r15,-STACK_FRAME_OVERHEAD aghi %r15,-STACK_FRAME_OVERHEAD
stg %r1,__SF_BACKCHAIN(%r15) stg %r1,__SF_BACKCHAIN(%r15)
#ifdef CONFIG_SMP
/* Save boot cpu number */ /* Save boot cpu number */
brasl %r14,smp_get_phys_cpu_id brasl %r14,smp_get_phys_cpu_id
lgr %r10,%r2 lgr %r10,%r2
#endif
/* Deactivate DAT */ /* Deactivate DAT */
stnsm __SF_EMPTY(%r15),0xfb stnsm __SF_EMPTY(%r15),0xfb
...@@ -177,11 +178,12 @@ swsusp_arch_resume: ...@@ -177,11 +178,12 @@ swsusp_arch_resume:
/* Pointer to save arae */ /* Pointer to save arae */
lghi %r13,0x1000 lghi %r13,0x1000
#ifdef CONFIG_SMP
/* Switch CPUs */ /* Switch CPUs */
lgr %r2,%r10 /* get cpu id */ lgr %r2,%r10 /* get cpu id */
llgf %r3,0x318(%r13) llgf %r3,0x318(%r13)
brasl %r14,smp_switch_boot_cpu_in_resume brasl %r14,smp_switch_boot_cpu_in_resume
#endif
/* Restore prefix register */ /* Restore prefix register */
spx 0x318(%r13) spx 0x318(%r13)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册