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
de9c4ad8
Commit
de9c4ad8
authored
Jul 12, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jul 12, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: alpha topology.h compile fix
Missing bits of cpumask_t conversion
parent
33ebcaa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
include/asm-alpha/topology.h
include/asm-alpha/topology.h
+6
-4
No files found.
include/asm-alpha/topology.h
View file @
de9c4ad8
...
@@ -22,17 +22,17 @@ static inline int cpu_to_node(int cpu)
...
@@ -22,17 +22,17 @@ static inline int cpu_to_node(int cpu)
return
node
;
return
node
;
}
}
static
inline
in
t
node_to_cpumask
(
int
node
)
static
inline
cpumask_
t
node_to_cpumask
(
int
node
)
{
{
unsigned
long
node_cpu_mask
=
0
;
cpumask_t
node_cpu_mask
=
CPU_MASK_NONE
;
int
cpu
;
int
cpu
;
for
(
cpu
=
0
;
cpu
<
NR_CPUS
;
cpu
++
)
{
for
(
cpu
=
0
;
cpu
<
NR_CPUS
;
cpu
++
)
{
if
(
cpu_online
(
cpu
)
&&
(
cpu_to_node
(
cpu
)
==
node
))
if
(
cpu_online
(
cpu
)
&&
(
cpu_to_node
(
cpu
)
==
node
))
node_cpu_mask
|=
1UL
<<
cpu
;
cpu_set
(
cpu
,
node_cpu_mask
)
;
}
}
#if DEBUG_NUMA
#if
def
DEBUG_NUMA
printk
(
"node %d: cpu_mask: %016lx
\n
"
,
node
,
node_cpu_mask
);
printk
(
"node %d: cpu_mask: %016lx
\n
"
,
node
,
node_cpu_mask
);
#endif
#endif
...
@@ -42,6 +42,8 @@ static inline int node_to_cpumask(int node)
...
@@ -42,6 +42,8 @@ static inline int node_to_cpumask(int node)
/* Cross-node load balancing interval. */
/* Cross-node load balancing interval. */
# define NODE_BALANCE_RATE 10
# define NODE_BALANCE_RATE 10
#define pcibus_to_cpumask(bus) (cpu_online_map)
#else
/* CONFIG_NUMA */
#else
/* CONFIG_NUMA */
# include <asm-generic/topology.h>
# include <asm-generic/topology.h>
#endif
/* !CONFIG_NUMA */
#endif
/* !CONFIG_NUMA */
...
...
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