aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/memory_model.h6
-rw-r--r--include/linux/mm.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-generic/memory_model.h b/include/asm-generic/memory_model.h
index 30d8d33491..52226e14bd 100644
--- a/include/asm-generic/memory_model.h
+++ b/include/asm-generic/memory_model.h
@@ -46,6 +46,12 @@
46 __pgdat->node_start_pfn; \ 46 __pgdat->node_start_pfn; \
47}) 47})
48 48
49#elif defined(CONFIG_SPARSEMEM_VMEMMAP)
50
51/* memmap is virtually contigious. */
52#define __pfn_to_page(pfn) (vmemmap + (pfn))
53#define __page_to_pfn(page) ((page) - vmemmap)
54
49#elif defined(CONFIG_SPARSEMEM) 55#elif defined(CONFIG_SPARSEMEM)
50/* 56/*
51 * Note: section's mem_map is encorded to reflect its start_pfn. 57 * Note: section's mem_map is encorded to reflect its start_pfn.
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 1692dd6cb9..d216abbd05 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1218,5 +1218,11 @@ extern int randomize_va_space;
1218 1218
1219const char * arch_vma_name(struct vm_area_struct *vma); 1219const char * arch_vma_name(struct vm_area_struct *vma);
1220 1220
1221struct page *sparse_early_mem_map_populate(unsigned long pnum, int nid);
1222int vmemmap_populate(struct page *start_page, unsigned long pages, int node);
1223int vmemmap_populate_pmd(pud_t *, unsigned long, unsigned long, int);
1224void *vmemmap_alloc_block(unsigned long size, int node);
1225void vmemmap_verify(pte_t *, int, unsigned long, unsigned long);
1226
1221#endif /* __KERNEL__ */ 1227#endif /* __KERNEL__ */
1222#endif /* _LINUX_MM_H */ 1228#endif /* _LINUX_MM_H */