]> git.baikalelectronics.ru Git - kernel.git/commit
cpu-topology: Don't error on more than CONFIG_NR_CPUS CPUs in device tree
authorZeng Tao <prime.zeng@hisilicon.com>
Fri, 17 Jan 2020 01:52:52 +0000 (09:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2020 14:21:49 +0000 (15:21 +0100)
commiteffb618efdc23c176600b93f8d9888a0c9b0a88e
treeb9fd5f8c709847f3e60bc90f11d5c0d8eafa5425
parent43f0d9b0521013f9eb0ef8e28e67806467d14b3b
cpu-topology: Don't error on more than CONFIG_NR_CPUS CPUs in device tree

When the kernel is configured with CONFIG_NR_CPUS smaller than the
number of CPU nodes in the device tree(DT), all the CPU nodes parsing
done to fetch topology information will fail. This is not reasonable
as it is legal to have all the physical CPUs in the system in the DT.

Let us just skip such CPU DT nodes that are not used in the kernel
rather than returning an error.

Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Zeng Tao <prime.zeng@hisilicon.com>
Link: https://lore.kernel.org/r/1579225973-32423-1-git-send-email-prime.zeng@hisilicon.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/arch_topology.c