diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2019-01-19 00:26:48 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2019-01-26 02:02:14 -0800 |
commit | 8b1c42cdd7181200dc1fff39dcb6ac1a3fac2c25 (patch) | |
tree | 64e4a798e06e5c81b39f8ca9b139d2ec374ac94f /arch/xtensa | |
parent | 306b38305c0f86de7f17c5b091a95451dcc93d7d (diff) | |
download | linux-stable-8b1c42cdd7181200dc1fff39dcb6ac1a3fac2c25.tar.gz linux-stable-8b1c42cdd7181200dc1fff39dcb6ac1a3fac2c25.tar.bz2 linux-stable-8b1c42cdd7181200dc1fff39dcb6ac1a3fac2c25.zip |
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>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/kernel/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/smp.c b/arch/xtensa/kernel/smp.c index c9fc2c4f71b3..80be6449c497 100644 --- a/arch/xtensa/kernel/smp.c +++ b/arch/xtensa/kernel/smp.c @@ -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); } |