Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15d59c87 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: enable vmalloc saving"

parents a01ec48a 46fa7281
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1781,7 +1781,7 @@ source "mm/Kconfig"

choice
	prompt "Virtual Memory Reclaim"
	default NO_VM_RECLAIM
	default ENABLE_VMALLOC_SAVING
	help
	  Select the method of reclaiming virtual memory

+3 −2
Original line number Diff line number Diff line
@@ -1158,6 +1158,9 @@ void __init adjust_lowmem_bounds(void)
	u64 vmalloc_limit;
	struct memblock_region *reg;
	phys_addr_t lowmem_limit = 0;
#ifdef CONFIG_ENABLE_VMALLOC_SAVING
	struct memblock_region *prev_reg = NULL;
#endif

	/*
	 * Let's use our own (unoptimized) equivalent of __pa() that is
@@ -1169,8 +1172,6 @@ void __init adjust_lowmem_bounds(void)
	vmalloc_limit = (u64)(uintptr_t)vmalloc_min - PAGE_OFFSET + PHYS_OFFSET;

#ifdef CONFIG_ENABLE_VMALLOC_SAVING
	struct memblock_region *prev_reg = NULL;

	for_each_memblock(memory, reg) {
		if (prev_reg == NULL) {
			prev_reg = reg;