diff options
| author | Vaibhav Jain <vaibhav@linux.ibm.com> | 2026-07-08 07:28:40 +0530 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-07-28 10:08:32 +0530 |
| commit | 8f45abd50aaa4155a72ec539f371dafb039786df (patch) | |
| tree | 91a48a1073fa3b059bb48e53f7151e0ba73774ff /tools/perf/scripts/python/task-analyzer.py | |
| parent | 810d07fb4cf7577847f85a6fd6273b69cad8d580 (diff) | |
powerpc/pseries: Skip vpa_init() for boot cpu in smp_setup_cpu()
During pSeries_setup_arch(), VPA for boot-cpu is first to be
initialized. However later in the boot, smp_setup_cpu() is called for
setting up VPA on boot and secondary cpus that were brought online. This
results in vpa_init() being called twice for boot-cpu and three redundant
H_REGISTER_VPA hcalls being made to the hypervisor.
Fix this by adding an extra condition in smp_set_cpu() to call vpa_init()
only on non boot-cpus.
Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260708015842.274690-1-vaibhav@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
