Commit ffd62fb7 authored by Aneesh Kumar K.V's avatar Aneesh Kumar K.V Committed by sanglipeng
Browse files

powerpc/pseries: Add a helper for form1 cpu distance

stable inclusion
from stable-v5.10.178
commit 498618e0a1e779f22cfa3bcf2497244bc7bace5a
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8D927

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=498618e0a1e779f22cfa3bcf2497244bc7bace5a



--------------------------------

[ Upstream commit ef31cb83 ]

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: default avatarAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Reviewed-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210812132223.225214-5-aneesh.kumar@linux.ibm.com


Stable-dep-of: b277fc79 ("powerpc/papr_scm: Update the NUMA distance table for the target node")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 08145598
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment