diff options
| author | Srikar Dronamraju <[email protected]> | 2020-08-10 12:48:34 +0530 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2020-09-16 22:13:32 +1000 |
| commit | fa35e868f9ddcbb7984fd5ab7f91aef924fa8543 (patch) | |
| tree | aa4bfaf136f56b604e54cdebb9ab16f7a2239d06 /tools/perf/scripts/python | |
| parent | 72730bfc2a2b91a525f38dfc830f598bdb95f216 (diff) | |
powerpc/smp: Implement cpu_to_coregroup_id
Lookup the coregroup id from the associativity array.
If unable to detect the coregroup id, fallback on the core id.
This way, ensure sched_domain degenerates and an extra sched domain is
not created.
Ideally this function should have been implemented in
arch/powerpc/kernel/smp.c. However if its implemented in mm/numa.c, we
don't need to find the primary domain again.
If the device-tree mentions more than one coregroup, then kernel
implements only the last or the smallest coregroup, which currently
corresponds to the penultimate domain in the device-tree.
Signed-off-by: Srikar Dronamraju <[email protected]>
Reviewed-by: Gautham R. Shenoy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions