Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
0e8f8f54
Commit
0e8f8f54
authored
Jul 08, 2006
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] NUMA: Register all nodes before cpus or sysfs will barf.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
18965513
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
arch/mips/kernel/smp.c
arch/mips/kernel/smp.c
+9
-5
No files found.
arch/mips/kernel/smp.c
View file @
0e8f8f54
...
...
@@ -467,14 +467,18 @@ static DEFINE_PER_CPU(struct cpu, cpu_devices);
static
int
__init
topology_init
(
void
)
{
int
cpu
;
int
ret
;
int
i
,
ret
;
for_each_present_cpu
(
cpu
)
{
ret
=
register_cpu
(
&
per_cpu
(
cpu_devices
,
cpu
),
cpu
);
#ifdef CONFIG_NUMA
for_each_online_node
(
i
)
register_one_node
(
i
);
#endif
/* CONFIG_NUMA */
for_each_present_cpu
(
i
)
{
ret
=
register_cpu
(
&
per_cpu
(
cpu_devices
,
i
),
i
);
if
(
ret
)
printk
(
KERN_WARNING
"topology_init: register_cpu %d "
"failed (%d)
\n
"
,
cpu
,
ret
);
"failed (%d)
\n
"
,
i
,
ret
);
}
return
0
;
...
...
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