diff options
Diffstat (limited to 'arch/powerpc/mm/mem.c')
| -rw-r--r-- | arch/powerpc/mm/mem.c | 12 | 
1 files changed, 10 insertions, 2 deletions
| diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 043bbeaf407c..ad198b439222 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c @@ -20,6 +20,7 @@  #include <asm/machdep.h>  #include <asm/rtas.h>  #include <asm/kasan.h> +#include <asm/sparsemem.h>  #include <asm/svm.h>  #include <mm/mmu_decl.h> @@ -27,6 +28,9 @@  unsigned long long memory_limit;  bool init_mem_is_free; +unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)] __page_aligned_bss; +EXPORT_SYMBOL(empty_zero_page); +  pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,  			      unsigned long size, pgprot_t vma_prot)  { @@ -126,7 +130,7 @@ void __ref arch_remove_memory(int nid, u64 start, u64 size,  }  #endif -#ifndef CONFIG_NEED_MULTIPLE_NODES +#ifndef CONFIG_NUMA  void __init mem_topology_setup(void)  {  	max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; @@ -161,7 +165,7 @@ static int __init mark_nonram_nosave(void)  	return 0;  } -#else /* CONFIG_NEED_MULTIPLE_NODES */ +#else /* CONFIG_NUMA */  static int __init mark_nonram_nosave(void)  {  	return 0; @@ -298,6 +302,10 @@ void __init mem_init(void)  			ioremap_bot, IOREMAP_TOP);  	pr_info("  * 0x%08lx..0x%08lx  : vmalloc & ioremap\n",  		VMALLOC_START, VMALLOC_END); +#ifdef MODULES_VADDR +	pr_info("  * 0x%08lx..0x%08lx  : modules\n", +		MODULES_VADDR, MODULES_END); +#endif  #endif /* CONFIG_PPC32 */  } |