diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2019-01-19 11:26:48 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-23 10:44:25 +0300 |
commit | 19960e19a7f903062d8191a5773611e313f889b9 (patch) | |
tree | b3b8e99e2e1da1fe66e0c30d621bea6e3bafd680 /arch/xtensa | |
parent | ce73d179cf66f6ea37e326716b419948e3df53a6 (diff) | |
download | linux-19960e19a7f903062d8191a5773611e313f889b9.tar.xz |
xtensa: SMP: mark each possible CPU as present
[ Upstream commit 8b1c42cdd7181200dc1fff39dcb6ac1a3fac2c25 ]
Otherwise it is impossible to enable CPUs after booting with 'maxcpus'
parameter.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
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 545144d1431d..0e34c1ed4aa8 100644 --- a/arch/xtensa/kernel/smp.c +++ b/arch/xtensa/kernel/smp.c @@ -80,7 +80,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); } |