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
b23e388e
Commit
b23e388e
authored
Aug 21, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Fix NUMA compile after cpu bitmasks merge
parent
890c4e2c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
arch/ppc64/mm/numa.c
arch/ppc64/mm/numa.c
+3
-3
include/asm-ppc64/mmzone.h
include/asm-ppc64/mmzone.h
+1
-1
include/asm-ppc64/topology.h
include/asm-ppc64/topology.h
+4
-2
No files found.
arch/ppc64/mm/numa.c
View file @
b23e388e
...
...
@@ -24,7 +24,7 @@
int
numa_cpu_lookup_table
[
NR_CPUS
]
=
{
[
0
...
(
NR_CPUS
-
1
)]
=
-
1
};
int
numa_memory_lookup_table
[
MAX_MEMORY
>>
MEMORY_INCREMENT_SHIFT
]
=
{
[
0
...
((
MAX_MEMORY
>>
MEMORY_INCREMENT_SHIFT
)
-
1
)]
=
-
1
};
unsigned
long
numa_cpumask_lookup_table
[
MAX_NUMNODES
];
cpumask_t
numa_cpumask_lookup_table
[
MAX_NUMNODES
];
int
nr_cpus_in_node
[
MAX_NUMNODES
]
=
{
[
0
...
(
MAX_NUMNODES
-
1
)]
=
0
};
struct
pglist_data
node_data
[
MAX_NUMNODES
];
...
...
@@ -34,8 +34,8 @@ static inline void map_cpu_to_node(int cpu, int node)
{
dbg
(
"cpu %d maps to domain %d
\n
"
,
cpu
,
node
);
numa_cpu_lookup_table
[
cpu
]
=
node
;
if
(
!
(
numa_cpumask_lookup_table
[
node
]
&
1UL
<<
cpu
))
{
numa_cpumask_lookup_table
[
node
]
|=
1UL
<<
cpu
;
if
(
!
(
cpu_isset
(
cpu
,
numa_cpumask_lookup_table
[
node
])
))
{
cpu_set
(
cpu
,
numa_cpumask_lookup_table
[
node
])
;
nr_cpus_in_node
[
node
]
++
;
}
}
...
...
include/asm-ppc64/mmzone.h
View file @
b23e388e
...
...
@@ -20,7 +20,7 @@ extern struct pglist_data node_data[];
extern
int
numa_cpu_lookup_table
[];
extern
int
numa_memory_lookup_table
[];
extern
unsigned
long
numa_cpumask_lookup_table
[];
extern
cpumask_t
numa_cpumask_lookup_table
[];
extern
int
nr_cpus_in_node
[];
#define MAX_MEMORY (1UL << 41)
...
...
include/asm-ppc64/topology.h
View file @
b23e388e
...
...
@@ -24,14 +24,16 @@ static inline int cpu_to_node(int cpu)
#define parent_node(node) (node)
static
inline
unsigned
long
node_to_cpumask
(
int
node
)
static
inline
cpumask_t
node_to_cpumask
(
int
node
)
{
return
numa_cpumask_lookup_table
[
node
];
}
static
inline
int
node_to_first_cpu
(
int
node
)
{
return
__ffs
(
node_to_cpumask
(
node
));
cpumask_t
tmp
;
tmp
=
node_to_cpumask
(
node
);
return
first_cpu
(
tmp
);
}
#define node_to_memblk(node) (node)
...
...
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