Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99913
b: refs/heads/master
c: 3a58a2a
h: refs/heads/master
i:
  99911: 3fc43d1
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 8, 2008
1 parent 9cd5dc8 commit 76e8649
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 28 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: cfb0e53b05402f1ce65053677409a819c1798d34
refs/heads/master: 3a58a2a6c879b2e47daafd6e641661c50ac9da5a
8 changes: 6 additions & 2 deletions trunk/arch/x86/mm/discontig_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void *alloc_remap(int nid, unsigned long size)
return allocation;
}

void __init remap_numa_kva(void)
static void __init remap_numa_kva(void)
{
void *vaddr;
unsigned long pfn;
Expand Down Expand Up @@ -373,12 +373,16 @@ void __init initmem_init(unsigned long start_pfn,

allocate_pgdat(nid);
}
remap_numa_kva();

printk(KERN_DEBUG "High memory starts at vaddr %08lx\n",
(ulong) pfn_to_kaddr(highstart_pfn));
for_each_online_node(nid)
propagate_e820_map_node(nid);

memset(NODE_DATA(0), 0, sizeof(struct pglist_data));
for_each_online_node(nid)
memset(NODE_DATA(nid), 0, sizeof(struct pglist_data));

NODE_DATA(0)->bdata = &node0_bdata;
setup_bootmem_allocator();
}
Expand Down
20 changes: 0 additions & 20 deletions trunk/arch/x86/mm/init_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,6 @@ static void __init pagetable_init(void)

paravirt_pagetable_setup_start(pgd_base);

remap_numa_kva();
/*
* Fixed mappings, only the page table structure has to be
* created - mappings will be set by set_fixmap():
Expand Down Expand Up @@ -724,24 +723,6 @@ void __init setup_bootmem_allocator(void)
after_init_bootmem = 1;
}

/*
* The node 0 pgdat is initialized before all of these because
* it's needed for bootmem. node>0 pgdats have their virtual
* space allocated before the pagetables are in place to access
* them, so they can't be cleared then.
*
* This should all compile down to nothing when NUMA is off.
*/
static void __init remapped_pgdat_init(void)
{
int nid;

for_each_online_node(nid) {
if (nid != 0)
memset(NODE_DATA(nid), 0, sizeof(struct pglist_data));
}
}

static void __init find_early_table_space(unsigned long end)
{
unsigned long puds, pmds, tables, start;
Expand Down Expand Up @@ -831,7 +812,6 @@ void __init paging_init(void)
/*
* NOTE: at this point the bootmem allocator is fully available.
*/
remapped_pgdat_init();
sparse_init();
zone_sizes_init();

Expand Down
5 changes: 0 additions & 5 deletions trunk/include/asm-x86/numa_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ extern int pxm_to_nid(int pxm);
extern void numa_remove_cpu(int cpu);

#ifdef CONFIG_NUMA
extern void __init remap_numa_kva(void);
extern void set_highmem_pages_init(void);
#else
static inline void remap_numa_kva(void)
{
}
#endif

#endif /* _ASM_X86_32_NUMA_H */

0 comments on commit 76e8649

Please sign in to comment.