]> git.baikalelectronics.ru Git - kernel.git/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)
commit7175c4c705fc936de77826c9551faccb47550f25
tree2886e136bd81597ad39968d51e44b16c7826baf6
parent8b818a434caf24eacf40a8260593a40fda030077
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