[SPARC64]: Fix build regressions added by dr-cpu changes.
Do not select HOTPLUG_CPU from SUN_LDOMS, that causes
HOTPLUG_CPU to be selected even on non-SMP which is
illegal.
Only build hvtramp.o when SMP, just like trampoline.o
Protect dr-cpu code in ds.c with HOTPLUG_CPU.
Likewise move ldom_startcpu_cpuid() to smp.c and protect
it and the call site with SUN_LDOMS && HOTPLUG_CPU.
Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- arch/sparc64/Kconfig 0 additions, 1 deletionarch/sparc64/Kconfig
- arch/sparc64/kernel/Makefile 2 additions, 3 deletionsarch/sparc64/kernel/Makefile
- arch/sparc64/kernel/ds.c 6 additions, 48 deletionsarch/sparc64/kernel/ds.c
- arch/sparc64/kernel/smp.c 51 additions, 1 deletionarch/sparc64/kernel/smp.c
- include/asm-sparc64/ldc.h 0 additions, 1 deletioninclude/asm-sparc64/ldc.h
Loading
Please register or sign in to comment