Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46261
b: refs/heads/master
c: 524fd98
h: refs/heads/master
i:
  46259: 5af4f94
v: v3
  • Loading branch information
Bob Picco authored and Tony Luck committed Feb 6, 2007
1 parent 32cf33a commit 6640e9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 34 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: f1c0afa2e8802c01cf82c915e2bb3cb2a81570d4
refs/heads/master: 524fd988bb83153ddc9cfea867129eb6efb7ac23
36 changes: 3 additions & 33 deletions trunk/arch/ia64/mm/discontig.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,37 +412,6 @@ static void __init memory_less_nodes(void)
return;
}

#ifdef CONFIG_SPARSEMEM
/**
* register_sparse_mem - notify SPARSEMEM that this memory range exists.
* @start: physical start of range
* @end: physical end of range
* @arg: unused
*
* Simply calls SPARSEMEM to register memory section(s).
*/
static int __init register_sparse_mem(unsigned long start, unsigned long end,
void *arg)
{
int nid;

start = __pa(start) >> PAGE_SHIFT;
end = __pa(end) >> PAGE_SHIFT;
nid = early_pfn_to_nid(start);
memory_present(nid, start, end);

return 0;
}

static void __init arch_sparse_init(void)
{
efi_memmap_walk(register_sparse_mem, NULL);
sparse_init();
}
#else
#define arch_sparse_init() do {} while (0)
#endif

/**
* find_memory - walk the EFI memory map and setup the bootmem allocator
*
Expand Down Expand Up @@ -694,10 +663,11 @@ void __init paging_init(void)

max_dma = virt_to_phys((void *) MAX_DMA_ADDRESS) >> PAGE_SHIFT;

arch_sparse_init();

efi_memmap_walk(filter_rsvd_memory, count_node_pages);

sparse_memory_present_with_active_regions(MAX_NUMNODES);
sparse_init();

#ifdef CONFIG_VIRTUAL_MEM_MAP
vmalloc_end -= PAGE_ALIGN(ALIGN(max_low_pfn, MAX_ORDER_NR_PAGES) *
sizeof(struct page));
Expand Down

0 comments on commit 6640e9b

Please sign in to comment.