Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22954
b: refs/heads/master
c: 2b26122
h: refs/heads/master
v: v3
  • Loading branch information
Nathan Lynch authored and Paul Mackerras committed Mar 22, 2006
1 parent 1a76585 commit edfd3b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: 482ec7c403d239bb4f1732faf9a14988094ce08b
refs/heads/master: 2b2612272c77288b2bd53d5831df737cd669cd93
10 changes: 3 additions & 7 deletions trunk/arch/powerpc/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,7 @@ static int cpu_numa_callback(struct notifier_block *nfb,

switch (action) {
case CPU_UP_PREPARE:
if (min_common_depth == -1 || !numa_enabled)
map_cpu_to_node(lcpu, 0);
else
numa_setup_cpu(lcpu);
numa_setup_cpu(lcpu);
ret = NOTIFY_OK;
break;
#ifdef CONFIG_HOTPLUG_CPU
Expand Down Expand Up @@ -459,8 +456,6 @@ static int __init parse_numa_properties(void)
goto new_range;
}

numa_setup_cpu(boot_cpuid);

return 0;
}

Expand All @@ -475,7 +470,6 @@ static void __init setup_nonnuma(void)
printk(KERN_INFO "Memory hole size: %ldMB\n",
(top_of_ram - total_ram) >> 20);

map_cpu_to_node(boot_cpuid, 0);
for (i = 0; i < lmb.memory.cnt; ++i)
add_region(0, lmb.memory.region[i].base >> PAGE_SHIFT,
lmb_size_pages(&lmb.memory, i));
Expand Down Expand Up @@ -612,6 +606,8 @@ void __init do_init_bootmem(void)
dump_numa_memory_topology();

register_cpu_notifier(&ppc64_numa_nb);
cpu_numa_callback(&ppc64_numa_nb, CPU_UP_PREPARE,
(void *)(unsigned long)boot_cpuid);

for_each_online_node(nid) {
unsigned long start_pfn, end_pfn, pages_present;
Expand Down

0 comments on commit edfd3b6

Please sign in to comment.