linux/arch/powerpc/platforms/85xx
Xiaoming Ni c45361abb9 powerpc/85xx: fix timebase sync issue when CONFIG_HOTPLUG_CPU=n
When CONFIG_SMP=y, timebase synchronization is required when the second
kernel is started.

arch/powerpc/kernel/smp.c:
  int __cpu_up(unsigned int cpu, struct task_struct *tidle)
  {
  	...
  	if (smp_ops->give_timebase)
  		smp_ops->give_timebase();
  	...
  }

  void start_secondary(void *unused)
  {
  	...
  	if (smp_ops->take_timebase)
  		smp_ops->take_timebase();
  	...
  }

When CONFIG_HOTPLUG_CPU=n and CONFIG_KEXEC_CORE=n,
 smp_85xx_ops.give_timebase is NULL,
 smp_85xx_ops.take_timebase is NULL,
As a result, the timebase is not synchronized.

Timebase  synchronization does not depend on CONFIG_HOTPLUG_CPU.

Fixes: 56f1ba2807 ("powerpc/mpc85xx: refactor the PM operations")
Cc: stable@vger.kernel.org # v4.6+
Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210929033646.39630-3-nixiaoming@huawei.com
2021-10-09 00:15:58 +11:00
..
bsc913x_qds.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
bsc913x_rdb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
c293pcie.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
common.c powerpc/85xx: remove mostly pointless mpc85xx_qe_init() 2019-11-17 01:55:42 -06:00
corenet_generic.c powerpc/85xx: Fix declaration made after definition 2020-11-19 14:50:13 +11:00
ge_imp3a.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
Kconfig powerpc: retire sbc8548 board support 2021-08-27 00:48:11 +10:00
ksi8560.c powerpc: Move 32-bit probe() machine to later in the boot process 2016-07-21 19:06:42 +10:00
Makefile powerpc/85xx: fix timebase sync issue when CONFIG_HOTPLUG_CPU=n 2021-10-09 00:15:58 +11:00
mpc85xx_ads.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
mpc85xx_cds.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
mpc85xx_ds.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
mpc85xx_mds.c soc: fsl: qe: move calls of qe_ic_init out of arch/powerpc/ 2019-12-09 13:54:31 -06:00
mpc85xx_pm_ops.c powerpc/85xx: fix timebase sync issue when CONFIG_HOTPLUG_CPU=n 2021-10-09 00:15:58 +11:00
mpc85xx_rdb.c soc: fsl: qe: move calls of qe_ic_init out of arch/powerpc/ 2019-12-09 13:54:31 -06:00
mpc85xx.h powerpc/85xx: remove mostly pointless mpc85xx_qe_init() 2019-11-17 01:55:42 -06:00
mpc8536_ds.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
mvme2500.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
p1010rdb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
p1022_ds.c powerpc/dma: use the generic direct mapping bypass 2019-02-18 22:41:04 +11:00
p1022_rdk.c powerpc/dma: use the generic direct mapping bypass 2019-02-18 22:41:04 +11:00
p1023_rdb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
ppa8548.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
qemu_e500.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
sgy_cts1000.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
smp.c powerpc/85xx: fix timebase sync issue when CONFIG_HOTPLUG_CPU=n 2021-10-09 00:15:58 +11:00
smp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
socrates_fpga_pic.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
socrates_fpga_pic.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
socrates.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
stx_gp3.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
t1042rdb_diu.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
tqm85xx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
twr_p102x.c ARM: SoC-related driver updates 2020-02-08 14:04:19 -08:00
xes_mpc85xx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 419 2019-06-05 17:37:15 +02:00