Skip to content

Commit

Permalink
xtensa: SMP: mark each possible CPU as present
Browse files Browse the repository at this point in the history
[ Upstream commit 8b1c42c ]

Otherwise it is impossible to enable CPUs after booting with 'maxcpus'
parameter.

Signed-off-by: Max Filippov <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
jcmvbkbc authored and gregkh committed Mar 13, 2019
1 parent 7b72724 commit c754598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
{
unsigned i;

for (i = 0; i < max_cpus; ++i)
for_each_possible_cpu(i)
set_cpu_present(i, true);
}

Expand Down

0 comments on commit c754598

Please sign in to comment.