提交 a888cebe 编写于 作者: A Ashok Raj 提交者: Linus Torvalds

[PATCH] x86_64: create sysfs entries for cpu only for present cpus

Need to create sysfs only for cpus that are present.  Without which we see
NR_CPUS entries created when we have CONFIG_HOTPLUG and CONFIG_HOTPLUG_CPU
enabled.
Signed-off-by: NAshok Raj <ashok.raj@intel.com>
Acked-by: NAndi Kleen <ak@muc.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 0c2b9d5c
......@@ -76,7 +76,7 @@ static int __init topology_init(void)
for_each_online_node(i)
arch_register_node(i);
for_each_cpu(i)
for_each_present_cpu(i)
arch_register_cpu(i);
return 0;
}
......@@ -87,7 +87,7 @@ static int __init topology_init(void)
{
int i;
for_each_cpu(i)
for_each_present_cpu(i)
arch_register_cpu(i);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册