Skip to content

Commit

Permalink
[PATCH] x86_64: create sysfs entries for cpu only for present cpus
Browse files Browse the repository at this point in the history
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: Ashok Raj <ashok.raj@intel.com>
Acked-by: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Ashok Raj authored and Linus Torvalds committed Sep 7, 2005
1 parent 0c2b9d5 commit a888ceb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/i386/mach-default/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit a888ceb

Please sign in to comment.