]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - arch/powerpc/mm/numa.c
powerpc/pseries: Add a helper for form1 cpu distance
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Thu, 12 Aug 2021 13:22:22 +0000 (18:52 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Aug 2021 12:04:27 +0000 (22:04 +1000)
commitef31cb83d19c4c589d650747cd5a7e502be9f665
tree0e714a28b7ed7cf134531196a03ec92a405c36a2
parent8ddc6448ec5a5ef50eaa581a7dec0e12a02850ff
powerpc/pseries: Add a helper for form1 cpu distance

This helper is only used with the dispatch trace log collection.
A later patch will add Form2 affinity support and this change helps
in keeping that simpler. Also add a comment explaining we don't expect
the code to be called with FORM0

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210812132223.225214-5-aneesh.kumar@linux.ibm.com
arch/powerpc/include/asm/topology.h
arch/powerpc/mm/numa.c
arch/powerpc/platforms/pseries/lpar.c