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
29c337a0
Commit
29c337a0
authored
Sep 24, 2009
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cpumask: remove obsolete node_to_cpumask now everyone uses cpumask_of_node
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
b966cd6b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1 addition
and
57 deletions
+1
-57
arch/alpha/include/asm/topology.h
arch/alpha/include/asm/topology.h
+0
-17
arch/ia64/include/asm/topology.h
arch/ia64/include/asm/topology.h
+0
-1
arch/mips/include/asm/mach-ip27/topology.h
arch/mips/include/asm/mach-ip27/topology.h
+0
-1
arch/mips/sgi-ip27/ip27-memory.c
arch/mips/sgi-ip27/ip27-memory.c
+1
-1
arch/powerpc/include/asm/topology.h
arch/powerpc/include/asm/topology.h
+0
-5
arch/sh/include/asm/topology.h
arch/sh/include/asm/topology.h
+0
-1
arch/sparc/include/asm/topology_64.h
arch/sparc/include/asm/topology_64.h
+0
-14
include/asm-generic/topology.h
include/asm-generic/topology.h
+0
-17
No files found.
arch/alpha/include/asm/topology.h
View file @
29c337a0
...
...
@@ -22,23 +22,6 @@ static inline int cpu_to_node(int cpu)
return
node
;
}
static
inline
cpumask_t
node_to_cpumask
(
int
node
)
{
cpumask_t
node_cpu_mask
=
CPU_MASK_NONE
;
int
cpu
;
for_each_online_cpu
(
cpu
)
{
if
(
cpu_to_node
(
cpu
)
==
node
)
cpu_set
(
cpu
,
node_cpu_mask
);
}
#ifdef DEBUG_NUMA
printk
(
"node %d: cpu_mask: %016lx
\n
"
,
node
,
node_cpu_mask
);
#endif
return
node_cpu_mask
;
}
extern
struct
cpumask
node_to_cpumask_map
[];
/* FIXME: This is dumb, recalculating every time. But simple. */
static
const
struct
cpumask
*
cpumask_of_node
(
int
node
)
...
...
arch/ia64/include/asm/topology.h
View file @
29c337a0
...
...
@@ -33,7 +33,6 @@
/*
* Returns a bitmask of CPUs on Node 'node'.
*/
#define node_to_cpumask(node) (node_to_cpu_mask[node])
#define cpumask_of_node(node) (&node_to_cpu_mask[node])
/*
...
...
arch/mips/include/asm/mach-ip27/topology.h
View file @
29c337a0
...
...
@@ -24,7 +24,6 @@ extern struct cpuinfo_ip27 sn_cpu_info[NR_CPUS];
#define cpu_to_node(cpu) (sn_cpu_info[(cpu)].p_nodeid)
#define parent_node(node) (node)
#define node_to_cpumask(node) (hub_data(node)->h_cpus)
#define cpumask_of_node(node) (&hub_data(node)->h_cpus)
struct
pci_bus
;
extern
int
pcibus_to_node
(
struct
pci_bus
*
);
...
...
arch/mips/sgi-ip27/ip27-memory.c
View file @
29c337a0
...
...
@@ -421,7 +421,7 @@ static void __init node_mem_init(cnodeid_t node)
/*
* A node with nothing. We use it to avoid any special casing in
*
node_to_cpumask
*
cpumask_of_node
*/
static
struct
node_data
null_node
=
{
.
hub
=
{
...
...
arch/powerpc/include/asm/topology.h
View file @
29c337a0
...
...
@@ -17,11 +17,6 @@ static inline int cpu_to_node(int cpu)
#define parent_node(node) (node)
static
inline
cpumask_t
node_to_cpumask
(
int
node
)
{
return
numa_cpumask_lookup_table
[
node
];
}
#define cpumask_of_node(node) (&numa_cpumask_lookup_table[node])
int
of_node_to_nid
(
struct
device_node
*
device
);
...
...
arch/sh/include/asm/topology.h
View file @
29c337a0
...
...
@@ -31,7 +31,6 @@
#define cpu_to_node(cpu) ((void)(cpu),0)
#define parent_node(node) ((void)(node),0)
#define node_to_cpumask(node) ((void)node, cpu_online_map)
#define cpumask_of_node(node) ((void)node, cpu_online_mask)
#define pcibus_to_node(bus) ((void)(bus), -1)
...
...
arch/sparc/include/asm/topology_64.h
View file @
29c337a0
...
...
@@ -12,22 +12,8 @@ static inline int cpu_to_node(int cpu)
#define parent_node(node) (node)
static
inline
cpumask_t
node_to_cpumask
(
int
node
)
{
return
numa_cpumask_lookup_table
[
node
];
}
#define cpumask_of_node(node) (&numa_cpumask_lookup_table[node])
/*
* Returns a pointer to the cpumask of CPUs on Node 'node'.
* Deprecated: use "const struct cpumask *mask = cpumask_of_node(node)"
*/
#define node_to_cpumask_ptr(v, node) \
cpumask_t *v = &(numa_cpumask_lookup_table[node])
#define node_to_cpumask_ptr_next(v, node) \
v = &(numa_cpumask_lookup_table[node])
struct
pci_bus
;
#ifdef CONFIG_PCI
extern
int
pcibus_to_node
(
struct
pci_bus
*
pbus
);
...
...
include/asm-generic/topology.h
View file @
29c337a0
...
...
@@ -37,9 +37,6 @@
#ifndef parent_node
#define parent_node(node) ((void)(node),0)
#endif
#ifndef node_to_cpumask
#define node_to_cpumask(node) ((void)node, cpu_online_map)
#endif
#ifndef cpumask_of_node
#define cpumask_of_node(node) ((void)node, cpu_online_mask)
#endif
...
...
@@ -55,18 +52,4 @@
#endif
/* CONFIG_NUMA */
/*
* returns pointer to cpumask for specified node
* Deprecated: use "const struct cpumask *mask = cpumask_of_node(node)"
*/
#ifndef node_to_cpumask_ptr
#define node_to_cpumask_ptr(v, node) \
cpumask_t _##v = node_to_cpumask(node); \
const cpumask_t *v = &_##v
#define node_to_cpumask_ptr_next(v, node) \
_##v = node_to_cpumask(node)
#endif
#endif
/* _ASM_GENERIC_TOPOLOGY_H */
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