Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xiphi1978
linux
提交
29c337a0
L
linux
项目概览
xiphi1978
/
linux
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
29c337a0
编写于
9月 24, 2009
作者:
R
Rusty Russell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cpumask: remove obsolete node_to_cpumask now everyone uses cpumask_of_node
Signed-off-by:
N
Rusty Russell
<
rusty@rustcorp.com.au
>
上级
b966cd6b
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
1 addition
and
57 deletion
+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
未找到文件。
arch/alpha/include/asm/topology.h
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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 */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录