mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
ANDROID: Make MGLRU aware of speculative faults
Bug: 228525049 Bug: 227651406 Change-Id: Ib3d45f74c5c23cbb1af7aaf95c90826baf406c7a Signed-off-by: Kalesh Singh <kaleshsingh@google.com> Signed-off-by: Juhyung Park <qkrwngud825@gmail.com> Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
f41c14a4ee
commit
5622e4b4b7
@ -4524,6 +4524,9 @@ static int __handle_mm_fault(struct vm_area_struct *vma, unsigned long address,
|
||||
return handle_pte_fault(&vmf);
|
||||
}
|
||||
|
||||
static void lru_gen_enter_fault(struct vm_area_struct *vma);
|
||||
static void lru_gen_exit_fault(void);
|
||||
|
||||
#ifdef CONFIG_SPECULATIVE_PAGE_FAULT
|
||||
|
||||
#ifndef __HAVE_ARCH_PTE_SPECIAL
|
||||
@ -4721,7 +4724,9 @@ int __handle_speculative_fault(struct mm_struct *mm, unsigned long address,
|
||||
}
|
||||
|
||||
mem_cgroup_enter_user_fault();
|
||||
lru_gen_enter_fault(vmf.vma);
|
||||
ret = handle_pte_fault(&vmf);
|
||||
lru_gen_exit_fault();
|
||||
mem_cgroup_exit_user_fault();
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user