]> Pileus Git - ~andy/linux/blobdiff - arch/ia64/mm/contig.c
Merge branch 'akpm' (updates from Andrew Morton)
[~andy/linux] / arch / ia64 / mm / contig.c
index 67c59ebec899c30ee4533880f3acb2bbc141ff02..da5237d636d650ec5f58dc9ff5f046473a60b679 100644 (file)
@@ -156,8 +156,7 @@ static void *cpu_data;
  *
  * Allocate and setup per-cpu data areas.
  */
-void * __cpuinit
-per_cpu_init (void)
+void *per_cpu_init(void)
 {
        static bool first_time = true;
        void *cpu0_data = __cpu0_per_cpu;
@@ -295,14 +294,6 @@ find_memory (void)
        alloc_per_cpu_data();
 }
 
-static int count_pages(u64 start, u64 end, void *arg)
-{
-       unsigned long *count = arg;
-
-       *count += (end - start) >> PAGE_SHIFT;
-       return 0;
-}
-
 /*
  * Set up the page tables.
  */
@@ -313,9 +304,6 @@ paging_init (void)
        unsigned long max_dma;
        unsigned long max_zone_pfns[MAX_NR_ZONES];
 
-       num_physpages = 0;
-       efi_memmap_walk(count_pages, &num_physpages);
-
        memset(max_zone_pfns, 0, sizeof(max_zone_pfns));
 #ifdef CONFIG_ZONE_DMA
        max_dma = virt_to_phys((void *) MAX_DMA_ADDRESS) >> PAGE_SHIFT;