summaryrefslogtreecommitdiffstats
path: root/arch/i386/mach-default
diff options
context:
space:
mode:
authorAshok Raj <ashok.raj@intel.com>2005-09-06 15:16:19 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-07 16:57:16 -0700
commita888cebe17e39476e5ca18c3a4bd96c6775070db (patch)
treecaeed406fda8fde3a283f1500807cacd5f6ef7a7 /arch/i386/mach-default
parent0c2b9d5c035f5a82c9c4ba717984d04838a0701e (diff)
downloadop-kernel-dev-a888cebe17e39476e5ca18c3a4bd96c6775070db.zip
op-kernel-dev-a888cebe17e39476e5ca18c3a4bd96c6775070db.tar.gz
[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: 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>
Diffstat (limited to 'arch/i386/mach-default')
-rw-r--r--arch/i386/mach-default/topology.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/i386/mach-default/topology.c b/arch/i386/mach-default/topology.c
index 23395ff..b643140 100644
--- a/arch/i386/mach-default/topology.c
+++ b/arch/i386/mach-default/topology.c
@@ -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;
}
OpenPOWER on IntegriCloud