parisc: Only list existing CPUs in cpu_possible_mask
authorHelge Deller <deller@gmx.de>
Fri, 1 Apr 2022 07:19:11 +0000 (09:19 +0200)
committerHelge Deller <deller@gmx.de>
Sun, 8 May 2022 18:01:11 +0000 (20:01 +0200)
commit0921244f6f4f0d05698b953fe632a99b38907226
tree35716da87bd2724404d080bbaba152ee0b4352b6
parent6c800d7f55fcd78e17deae5ae4374d8e73482c13
parisc: Only list existing CPUs in cpu_possible_mask

The inventory knows which CPUs are in the system, so this bitmask should
be in cpu_possible_mask instead of the bitmask based on CONFIG_NR_CPUS.

Reset the cpu_possible_mask before scanning the system for CPUs, and
mark each existing CPU as possible during initialization of that CPU.

This avoids those warnings later on too:

 register_cpu_capacity_sysctl: too early to get CPU4 device!

Signed-off-by: Helge Deller <deller@gmx.de>
Noticed-by: John David Anglin <dave.anglin@bell.net>
arch/parisc/kernel/processor.c