Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
320e6aba
Commit
320e6aba
authored
May 22, 2006
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Fix SMP now that fixup_cpu_present_map is gone.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
acf518cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
arch/mips/kernel/smp.c
arch/mips/kernel/smp.c
+4
-1
No files found.
arch/mips/kernel/smp.c
View file @
320e6aba
...
...
@@ -247,6 +247,9 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
current_thread_info
()
->
cpu
=
0
;
smp_tune_scheduling
();
plat_prepare_cpus
(
max_cpus
);
#ifndef CONFIG_HOTPLUG_CPU
cpu_present_map
=
cpu_possible_map
;
#endif
}
/* preload SMP state for boot cpu */
...
...
@@ -442,7 +445,7 @@ static int __init topology_init(void)
int
cpu
;
int
ret
;
for_each_cpu
(
cpu
)
{
for_each_
present_
cpu
(
cpu
)
{
ret
=
register_cpu
(
&
per_cpu
(
cpu_devices
,
cpu
),
cpu
,
NULL
);
if
(
ret
)
printk
(
KERN_WARNING
"topology_init: register_cpu %d "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment