Commit efe92c3e authored by Zou Nanhai's avatar Zou Nanhai Committed by Tony Luck

[IA64] discontig.c: remove max_gap and related call to efi_memmap_walk

max_gap is not used in discontig.c.
This patch is to remove it and the related efi_memmap_walk.
Signed-off-by: default avatarZou Nan hai <Nanhai.zou@intel.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent db4f7190
......@@ -631,12 +631,10 @@ void paging_init(void)
unsigned long max_dma;
unsigned long zones_size[MAX_NR_ZONES];
unsigned long zholes_size[MAX_NR_ZONES];
unsigned long max_gap, pfn_offset = 0;
unsigned long pfn_offset = 0;
int node;
max_dma = virt_to_phys((void *) MAX_DMA_ADDRESS) >> PAGE_SHIFT;
max_gap = 0;
efi_memmap_walk(find_largest_hole, &max_gap);
/* so min() will work in count_node_pages */
for (node = 0; node < numnodes; node++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment