]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
powerpc/pseries: Correct pseries/dlpar.c build break without CONFIG_SMP
authorNathan Fontenot <nfont@austin.ibm.com>
Tue, 8 Dec 2009 09:48:44 +0000 (09:48 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 9 Dec 2009 06:10:38 +0000 (17:10 +1100)
commit275a64f6040073254fa15eaf6e4e720f77d531d6
treec61b33621046a0ebd7b4ba8529d54e5109a8b37f
parent40d50cf7ca956183f3a573bc21082e1c7d04fa7b
powerpc/pseries: Correct pseries/dlpar.c build break without CONFIG_SMP

The recent patch to add cpu offline/online as part of the DLPAR
process for pseries causes a build break if CONFIG_SMP is not
defined.  Original patch here;
http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-November/078299.html

This corrects the build break by moving the online_node_cpus
and offline_node_cpus under the #ifdef CONFIG_ARCH_CPU_PROBE_RELEASE
portions of dlpar.c.

This patch also slightly modifies the online_node_cpus and offline_node_cpus
routines to prepend dlpar_ to the them and make them static.  These two
routine are only used in the dlpar add/remove of cpus and these changes
should help clarify that.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/dlpar.c