]> git.baikalelectronics.ru Git - kernel.git/commit
arch_topology: Don't set cluster identifier as physical package identifier
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 10:16:00 +0000 (11:16 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 15:22:29 +0000 (16:22 +0100)
commit56c5039436b00ede1b2725bff7c11d82205debd5
tree07a5a43c7a93d85da236ec81b9f364c1b62de2f6
parent473c3c63f7f35d62dec0e5290ef0aeb8da91e10e
arch_topology: Don't set cluster identifier as physical package identifier

Currently as we parse the CPU topology from /cpu-map node from the
device tree, we assign generated cluster count as the physical package
identifier for each CPU which is wrong.

The device tree bindings for CPU topology supports sockets to infer
the socket or physical package identifier for a given CPU. Since it is
fairly new and not supported on most of the old and existing systems, we
can assume all such systems have single socket/physical package.

Fix the physical package identifier to 0 by removing the assignment of
cluster identifier to the same.

Link: https://lore.kernel.org/r/20220704101605.1318280-17-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