aboutsummaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorGravatar Sudeep Holla <sudeep.holla@arm.com> 2022-07-04 11:16:04 +0100
committerGravatar Sudeep Holla <sudeep.holla@arm.com> 2022-07-04 16:23:23 +0100
commit00e66e37af0090f9ed95ca4bc3d8f5c6171daaf0 (patch)
tree6f74c13b1e622f910261f215b73cb15ec31511f7 /drivers/base
parentarch_topology: Add support for parsing sockets in /cpu-map (diff)
downloadlinux-00e66e37af0090f9ed95ca4bc3d8f5c6171daaf0.tar.gz
linux-00e66e37af0090f9ed95ca4bc3d8f5c6171daaf0.tar.bz2
linux-00e66e37af0090f9ed95ca4bc3d8f5c6171daaf0.zip
arch_topology: Warn that topology for nested clusters is not supported
We don't support the topology for clusters of CPU clusters while the DT and ACPI bindings theoritcally support the same. Just warn about the same so that it is clear to the users of arch_topology that the nested clusters are not yet supported. Link: https://lore.kernel.org/r/20220704101605.1318280-21-sudeep.holla@arm.com Tested-by: Ionela Voinescu <ionela.voinescu@arm.com> Tested-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/arch_topology.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c
index 8719c4458df9..441e14ac33a4 100644
--- a/drivers/base/arch_topology.c
+++ b/drivers/base/arch_topology.c
@@ -567,6 +567,8 @@ static int __init parse_cluster(struct device_node *cluster, int package_id,
if (c) {
leaf = false;
ret = parse_cluster(c, package_id, i, depth + 1);
+ if (depth > 0)
+ pr_warn("Topology for clusters of clusters not yet supported\n");
of_node_put(c);
if (ret != 0)
return ret;