mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "mm: disable fault around on emulated access bit architecture"
This commit is contained in:
commit
b4e7c7ab9c
1 changed files with 8 additions and 0 deletions
|
|
@ -3605,8 +3605,16 @@ vm_fault_t finish_fault(struct vm_fault *vmf)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
* If architecture emulates "accessed" or "young" bit without HW support,
|
||||
* there is no much gain with fault_around.
|
||||
*/
|
||||
static unsigned long fault_around_bytes __read_mostly =
|
||||
#ifndef __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS
|
||||
PAGE_SIZE;
|
||||
#else
|
||||
rounddown_pow_of_two(65536);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
static int fault_around_bytes_get(void *data, u64 *val)
|
||||
|
|
|
|||
Loading…
Reference in a new issue