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
nexedi
linux
Commits
78314ba8
Commit
78314ba8
authored
Oct 22, 2002
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Fix formatting a bit and issue #error when attempting to
use CONFIG_NUMA without CONFIG_ACPI_NUMA.
parent
12c79244
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
arch/ia64/kernel/smpboot.c
arch/ia64/kernel/smpboot.c
+11
-6
No files found.
arch/ia64/kernel/smpboot.c
View file @
78314ba8
...
@@ -429,30 +429,35 @@ smp_build_cpu_map (void)
...
@@ -429,30 +429,35 @@ smp_build_cpu_map (void)
}
}
#ifdef CONFIG_NUMA
#ifdef CONFIG_NUMA
char
cpu_to_node_map
[
NR_CPUS
]
__cacheline_aligned
;
char
cpu_to_node_map
[
NR_CPUS
]
__cacheline_aligned
;
/*
/*
* Build cpu to node mapping.
* Build cpu to node mapping.
*/
*/
void
__init
void
__init
build_cpu_to_node_map
(
void
)
build_cpu_to_node_map
(
void
)
{
{
int
cpu
,
i
;
int
cpu
,
i
;
for
(
cpu
=
0
;
cpu
<
NR_CPUS
;
cpu
++
)
{
for
(
cpu
=
0
;
cpu
<
NR_CPUS
;
++
cpu
)
{
/*
/*
* All Itanium NUMA platforms I know use ACPI, so maybe we
* All Itanium NUMA platforms I know use ACPI, so maybe we
* can drop this ifdef completely. [EF]
* can drop this ifdef completely. [EF]
*/
*/
#ifdef CONFIG_ACPI_NUMA
#ifdef CONFIG_ACPI_NUMA
for
(
i
=
0
;
i
<
NR_CPUS
;
i
++
)
for
(
i
=
0
;
i
<
NR_CPUS
;
++
i
)
if
(
cpu_physical_id
(
cpu
)
==
node_cpuid
[
i
].
phys_id
)
{
if
(
cpu_physical_id
(
cpu
)
==
node_cpuid
[
i
].
phys_id
)
{
cpu_to_node_map
[
cpu
]
=
node_cpuid
[
i
].
nid
;
cpu_to_node_map
[
cpu
]
=
node_cpuid
[
i
].
nid
;
break
;
break
;
}
}
#else
# error Fixme: Dunno how to build CPU-to-node map.
#endif
#endif
}
}
}
}
#endif
#endif
/* CONFIG_NUMA */
/*
/*
* Cycle through the APs sending Wakeup IPIs to boot each.
* Cycle through the APs sending Wakeup IPIs to boot each.
...
...
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