diff options
| author | Xiaoming Ni <[email protected]> | 2021-09-29 11:36:46 +0800 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-10-09 00:15:58 +1100 |
| commit | c45361abb9185b1e172bd75eff51ad5f601ccae4 (patch) | |
| tree | 58fb6e81c6cbca2a7a1878d30e7d6d75924be447 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 3c2172c1c47b4079c29f0e6637d764a99355ebcd (diff) | |
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: 56f1ba280719 ("powerpc/mpc85xx: refactor the PM operations")
Cc: [email protected] # v4.6+
Signed-off-by: Xiaoming Ni <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions