Skip to content

Commit 8b1c42c

Browse files
committed
xtensa: SMP: mark each possible CPU as present
Otherwise it is impossible to enable CPUs after booting with 'maxcpus' parameter. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
1 parent 306b383 commit 8b1c42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/xtensa/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
8383
{
8484
unsigned i;
8585

86-
for (i = 0; i < max_cpus; ++i)
86+
for_each_possible_cpu(i)
8787
set_cpu_present(i, true);
8888
}
8989

0 commit comments

Comments
 (0)