PMEM: Pre reserve virtual address range for on demand devices.
Since the PMEM driver establishes ioremaps on the fly for
on demand devices it is possible for the virtual address space
to become quickly fragmented. For such devices, pre-reserve the
virtual address range and only set up page table mappings when
required.
CRs-Fixed: 299510
Signed-off-by: Naveen Ramaraj <nramaraj@codeaurora.org>
diff --git a/arch/arm/mm/mm.h b/arch/arm/mm/mm.h
index cd9eb2c..7aa1cef 100644
--- a/arch/arm/mm/mm.h
+++ b/arch/arm/mm/mm.h
@@ -10,12 +10,7 @@
return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt);
}
-struct mem_type {
- pteval_t prot_pte;
- unsigned int prot_l1;
- unsigned int prot_sect;
- unsigned int domain;
-};
+struct mem_type;
const struct mem_type *get_mem_type(unsigned int type);