mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
ANDROID: mm: add vendor padding for SPECULATIVE_PAGE_FAULTS
Fields are added on mm_struct, vm_area_struct and vm_fault to support vendor feature, speculative page fault. Bug: 155842923 Change-Id: Iedda086d6f83f1353da5a2ed1e24f7ba7dde43f2 Merged-In: Iedda086d6f83f1353da5a2ed1e24f7ba7dde43f2 Signed-off-by: Hyesoo Yu <hyesoo.yu@samsung.com>
This commit is contained in:
parent
7121ba12e2
commit
9411d27783
2 changed files with 6 additions and 0 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#include <linux/overflow.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <linux/android_kabi.h>
|
||||
#include <linux/android_vendor.h>
|
||||
|
||||
struct mempolicy;
|
||||
struct anon_vma;
|
||||
|
|
@ -453,6 +454,8 @@ struct vm_fault {
|
|||
*/
|
||||
unsigned long vma_flags; /* Speculative Page Fault field */
|
||||
pgprot_t vma_page_prot; /* Speculative Page Fault field */
|
||||
ANDROID_VENDOR_DATA(1);
|
||||
ANDROID_VENDOR_DATA(2);
|
||||
};
|
||||
|
||||
/* page entry size for vm->huge_fault() */
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
#include <linux/page-flags-layout.h>
|
||||
#include <linux/workqueue.h>
|
||||
#include <linux/android_kabi.h>
|
||||
#include <linux/android_vendor.h>
|
||||
|
||||
#include <asm/mmu.h>
|
||||
|
||||
|
|
@ -366,6 +367,7 @@ struct vm_area_struct {
|
|||
ANDROID_KABI_RESERVE(2);
|
||||
ANDROID_KABI_RESERVE(3);
|
||||
ANDROID_KABI_RESERVE(4);
|
||||
ANDROID_VENDOR_DATA(1);
|
||||
} __randomize_layout;
|
||||
|
||||
struct core_thread {
|
||||
|
|
@ -537,6 +539,7 @@ struct mm_struct {
|
|||
atomic_long_t hugetlb_usage;
|
||||
#endif
|
||||
struct work_struct async_put_work;
|
||||
ANDROID_VENDOR_DATA(1);
|
||||
} __randomize_layout;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue