Skip to content

Commit 19960e1

Browse files
jcmvbkbcgregkh
authored andcommitted
xtensa: SMP: mark each possible CPU as present
[ 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]>
1 parent ce73d17 commit 19960e1

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
@@ -80,7 +80,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
8080
{
8181
unsigned i;
8282

83-
for (i = 0; i < max_cpus; ++i)
83+
for_each_possible_cpu(i)
8484
set_cpu_present(i, true);
8585
}
8686

0 commit comments

Comments
 (0)