]> git.itanic.dy.fi Git - linux-stable/commit
arch_topology: Add support for parsing sockets in /cpu-map
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 10:16:03 +0000 (11:16 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 15:23:23 +0000 (16:23 +0100)
commitdea8c0b40fb500be29f4649cf01202e42a8a54f8
tree2886e136bd81597ad39968d51e44b16c7826baf6
parent556c9678a7d4456a677588ce308200a673b7eb1f
arch_topology: Add support for parsing sockets in /cpu-map

Finally let us add support for socket nodes in /cpu-map in the device
tree. Since this may not be present in all the old platforms and even
most of the existing platforms, we need to assume absence of the socket
node indicates that it is a single socket system and handle appropriately.

Also it is likely that most single socket systems skip to as the node
since it is optional.

Link: https://lore.kernel.org/r/20220704101605.1318280-20-sudeep.holla@arm.com
Tested-by: Ionela Voinescu <ionela.voinescu@arm.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Ionela Voinescu <ionela.voinescu@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/base/arch_topology.c