KVM: PPC: fix kvmppc_start_thread() for CONFIG_SMP=N
authorMichael Neuling <mikey@neuling.org>
Thu, 10 Nov 2011 16:03:20 +0000 (16:03 +0000)
committerAvi Kivity <avi@redhat.com>
Mon, 26 Dec 2011 11:28:02 +0000 (13:28 +0200)
commit251da03897b383904901620835044e298061875f
tree01e2d3ff93f67b992054a9ad182f99530bd9c65f
parent96f38d72867bc54c312decaf8463f1e9607136da
KVM: PPC: fix kvmppc_start_thread() for CONFIG_SMP=N

Currently kvmppc_start_thread() tries to wake other SMT threads via
xics_wake_cpu().  Unfortunately xics_wake_cpu only exists when
CONFIG_SMP=Y so when compiling with CONFIG_SMP=N we get:

  arch/powerpc/kvm/built-in.o: In function `.kvmppc_start_thread':
  book3s_hv.c:(.text+0xa1e0): undefined reference to `.xics_wake_cpu'

The following should be fine since kvmppc_start_thread() shouldn't
called to start non-zero threads when SMP=N since threads_per_core=1.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_hv.c