openrisc: Use devicetree to determine present cpus
authorJan Henrik Weinstock <jan.weinstock@rwth-aachen.de>
Mon, 8 Feb 2021 14:27:16 +0000 (15:27 +0100)
committerStafford Horne <shorne@gmail.com>
Mon, 8 Feb 2021 20:38:50 +0000 (05:38 +0900)
commit8f722f67452f4b28cd8d7acf1658daa5796437c2
treed3e81e4d84faa2716ccaa36c10b801283b60cf63
parent2261352157a932717ec08b9dd18d1bfbb7c37c52
openrisc: Use devicetree to determine present cpus

Use the device tree to determine the present cpus instead of assuming
all CONFIG_NRCPUS are actually present in the system.

Signed-off-by: Jan Henrik Weinstock <jan.weinstock@rwth-aachen.de>
[shorne: Squashed 2 email commits and added summary from email]
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/kernel/smp.c