Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35891
b: refs/heads/master
c: aada06c
h: refs/heads/master
i:
  35889: 44d612a
  35887: 347878f
v: v3
  • Loading branch information
Magnus Damm authored and Andi Kleen committed Sep 26, 2006
1 parent f409ac5 commit 49a7712
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba4d40bb5c465f0a4dcc30d02dab80c2cb7e1ff3
refs/heads/master: aada06c9b7f4cdedbeb2bc905893cf1923a0abad
21 changes: 3 additions & 18 deletions trunk/arch/i386/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <linux/init.h>
#include <linux/smp.h>
#include <linux/nodemask.h>
#include <linux/mmzone.h>
#include <asm/cpu.h>

static struct i386_cpu cpu_devices[NR_CPUS];
Expand Down Expand Up @@ -55,34 +56,18 @@ EXPORT_SYMBOL(arch_register_cpu);
EXPORT_SYMBOL(arch_unregister_cpu);
#endif /*CONFIG_HOTPLUG_CPU*/



#ifdef CONFIG_NUMA
#include <linux/mmzone.h>

static int __init topology_init(void)
{
int i;

#ifdef CONFIG_NUMA
for_each_online_node(i)
register_one_node(i);
#endif /* CONFIG_NUMA */

for_each_present_cpu(i)
arch_register_cpu(i);
return 0;
}

#else /* !CONFIG_NUMA */

static int __init topology_init(void)
{
int i;

for_each_present_cpu(i)
arch_register_cpu(i);
return 0;
}

#endif /* CONFIG_NUMA */

subsys_initcall(topology_init);

0 comments on commit 49a7712

Please sign in to comment.