]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: topology: move store_cpu_topology() to shared code
authorConor Dooley <conor.dooley@microchip.com>
Fri, 15 Jul 2022 17:51:55 +0000 (18:51 +0100)
committerConor Dooley <conor.dooley@microchip.com>
Sun, 14 Aug 2022 23:42:28 +0000 (00:42 +0100)
commitf925e1848b58df8c37936d7da3bd487f53fb7e77
tree1abb1386d52c19ec07462b37f63257e19136ff8b
parent3d7dcb2c5450a57f60c448f42be48fdfe456bfdf
arm64: topology: move store_cpu_topology() to shared code

arm64's method of defining a default cpu topology requires only minimal
changes to apply to RISC-V also. The current arm64 implementation exits
early in a uniprocessor configuration by reading MPIDR & claiming that
uniprocessor can rely on the default values.

This is appears to be a hangover from prior to '206de32eec8a ("arm64:
topology: Stop using MPIDR for topology information")', because the
current code just assigns default values for multiprocessor systems.

With the MPIDR references removed, store_cpu_topolgy() can be moved to
the common arch_topology code.

Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
arch/arm64/kernel/topology.c
drivers/base/arch_topology.c