ANDROID: GKI: add PG_oem_reserved in enum pageflags
Add PG_oem_reserved in enum pageflags to indicate more status of page for OEM, this flag will be visible only in 64bit platform. Bug: 235673196 Change-Id: I6a8324a5110d13cdb993c1d366824c057cd133dd Signed-off-by: Chao Yu <chao@kernel.org>
This commit is contained in:
parent
b7a7765d8a
commit
a047de7997
|
@ -140,6 +140,9 @@ enum pageflags {
|
|||
#endif
|
||||
#ifdef CONFIG_KASAN_HW_TAGS
|
||||
PG_skip_kasan_poison,
|
||||
#endif
|
||||
#ifdef CONFIG_64BIT
|
||||
PG_oem_reserved,
|
||||
#endif
|
||||
__NR_PAGEFLAGS,
|
||||
|
||||
|
|
|
@ -91,8 +91,10 @@
|
|||
|
||||
#ifdef CONFIG_64BIT
|
||||
#define IF_HAVE_PG_ARCH_2(flag,string) ,{1UL << flag, string}
|
||||
#define IF_HAVE_PG_OEM_RESERVED(flag,string) ,{1UL << flag, string}
|
||||
#else
|
||||
#define IF_HAVE_PG_ARCH_2(flag,string)
|
||||
#define IF_HAVE_PG_OEM_RESERVED(flag,string)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_KASAN_HW_TAGS
|
||||
|
@ -129,6 +131,7 @@ IF_HAVE_PG_HWPOISON(PG_hwpoison, "hwpoison" ) \
|
|||
IF_HAVE_PG_IDLE(PG_young, "young" ) \
|
||||
IF_HAVE_PG_IDLE(PG_idle, "idle" ) \
|
||||
IF_HAVE_PG_ARCH_2(PG_arch_2, "arch_2" ) \
|
||||
IF_HAVE_PG_OEM_RESERVED(PG_oem_reserved,"oem_reserved" ) \
|
||||
IF_HAVE_PG_SKIP_KASAN_POISON(PG_skip_kasan_poison, "skip_kasan_poison")
|
||||
|
||||
#define show_page_flags(flags) \
|
||||
|
|
Loading…
Reference in New Issue