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

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

Merge "ARM: io: Make __check_vmalloc_seq() be aware of vmalloc savings"

parents 4a13c16b f0b1a1df
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -119,10 +119,17 @@ void __check_vmalloc_seq(struct mm_struct *mm)

	do {
		seq = init_mm.context.vmalloc_seq;
#ifdef CONFIG_ENABLE_VMALLOC_SAVING
		memcpy(pgd_offset(mm, PAGE_OFFSET),
		       pgd_offset_k(PAGE_OFFSET),
		       sizeof(pgd_t) * (pgd_index(VMALLOC_END) -
					pgd_index(PAGE_OFFSET)));
#else
		memcpy(pgd_offset(mm, VMALLOC_START),
		       pgd_offset_k(VMALLOC_START),
		       sizeof(pgd_t) * (pgd_index(VMALLOC_END) -
					pgd_index(VMALLOC_START)));
#endif
		mm->context.vmalloc_seq = seq;
	} while (seq != init_mm.context.vmalloc_seq);
}