projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1327f9
)
xtensa: SMP: mark each possible CPU as present
author
Max Filippov
<jcmvbkbc@gmail.com>
Sat, 19 Jan 2019 08:26:48 +0000
(
00:26
-0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:02:28 +0000
(14:02 -0700)
[ 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>
arch/xtensa/kernel/smp.c
patch
|
blob
|
history
diff --git
a/arch/xtensa/kernel/smp.c
b/arch/xtensa/kernel/smp.c
index
c9fc2c4
..
80be644
100644
(file)
--- 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);
}