]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: topology: move store_cpu_topology() to shared code
authorConor Dooley <conor.dooley@microchip.com>
Wed, 19 Oct 2022 12:52:09 +0000 (13:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Oct 2022 08:20:36 +0000 (10:20 +0200)
commit3c58f19de8514fc3700ca1343a63f77544bf0eb3
tree269b846a2a9905b3e48ff2818418170c0efef1cd
parentcc49f1a300b9f796259f3d4bd71861f223499bb3
arm64: topology: move store_cpu_topology() to shared code

commit f925e1848b58df8c37936d7da3bd487f53fb7e77 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/topology.c
drivers/base/arch_topology.c