summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/85xx/smp.c
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2012-04-17 20:49:40 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-03-26 23:13:49 (GMT)
commit566dec9a2c497a1e8dc35c295a908f89350e6666 (patch)
tree8f140036b0f3d6cbb8c851c76f89cf1ede6969be /arch/powerpc/platforms/85xx/smp.c
parent4581d1a1421dc427050f13bbed4a4a0862acc237 (diff)
downloadlinux-fsl-qoriq-566dec9a2c497a1e8dc35c295a908f89350e6666.tar.xz
powerpc/85xx: Add back condition for smp
The timebase synchronization is only necessary if we need to reset a separate core. Currently only KEXEC and CPU hotplug require resetting a single core. The following code should be in the condition of CONFIG_KEXEC or CONFIG_HOTPLUG_CPU .give_timebase = smp_generic_give_timebase, .take_timebase = smp_generic_take_timebase, Signed-off-by: York Sun <yorksun@freescale.com> Acked-by: Li Yang <leoli@freescale.com> Change-Id: I013bf19a0ff2d83ebe837e0250f0706023b7c895 Reviewed-on: http://git.am.freescale.net:8181/556 Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'arch/powerpc/platforms/85xx/smp.c')
-rw-r--r--arch/powerpc/platforms/85xx/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/smp.c b/arch/powerpc/platforms/85xx/smp.c
index 25d2d73..267c797 100644
--- a/arch/powerpc/platforms/85xx/smp.c
+++ b/arch/powerpc/platforms/85xx/smp.c
@@ -274,7 +274,7 @@ struct smp_ops_t smp_85xx_ops = {
.cpu_disable = generic_cpu_disable,
.cpu_die = generic_cpu_die,
#endif
-#ifdef CONFIG_KEXEC
+#if defined(CONFIG_KEXEC) || defined(CONFIG_HOTPLUG_CPU)
.give_timebase = smp_generic_give_timebase,
.take_timebase = smp_generic_take_timebase,
#endif