projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
306b383
)
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
Max Filippov
<jcmvbkbc@gmail.com>
Sat, 26 Jan 2019 10:02:14 +0000
(
02:02
-0800)
Otherwise it is impossible to enable CPUs after booting with 'maxcpus'
parameter.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/smp.c
patch
|
blob
|
history
diff --git
a/arch/xtensa/kernel/smp.c
b/arch/xtensa/kernel/smp.c
index c9fc2c4f71b3b4afb8f9393bf22bcdeaa2150e64..80be6449c497e2ea94f40e196747b6cac01ae557 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);
}