Commit 68df566a authored by Max Filippov's avatar Max Filippov Committed by Kleber Sacilotto de Souza

xtensa: SMP: mark each possible CPU as present

BugLink: https://bugs.launchpad.net/bugs/1822271

[ Upstream commit 8b1c42cd ]

Otherwise it is impossible to enable CPUs after booting with 'maxcpus'
parameter.
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Acked-by: default avatarJuerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 0b5ad277
...@@ -80,7 +80,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus) ...@@ -80,7 +80,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
{ {
unsigned i; unsigned i;
for (i = 0; i < max_cpus; ++i) for_each_possible_cpu(i)
set_cpu_present(i, true); set_cpu_present(i, true);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment