From 1a384eabfe277c199b6166a9019c221824ab968f Mon Sep 17 00:00:00 2001 From: xiewen3 Date: Tue, 16 May 2023 23:10:21 +0800 Subject: [PATCH] LUR: Revert "UPSTREAM: x86/mm: implement arch_faults_on_old_pte() stub on x86" The LRU function is not compatible with GKI, causing GKI to fail to start, so revert. This reverts commit 0c5ddd0dfcff97eb4546d087c2757cf8d149bd57. Change-Id: I9bd79de6463879a398a28d5921655e3038ef1320 Reviewed-on: https://gerrit.mot.com/2609783 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- arch/x86/include/asm/pgtable.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index cc64fbb33f66..1ae7c20f5469 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h @@ -1467,12 +1467,6 @@ static inline bool arch_has_pfn_modify_check(void) return boot_cpu_has_bug(X86_BUG_L1TF); } -#define arch_faults_on_old_pte arch_faults_on_old_pte -static inline bool arch_faults_on_old_pte(void) -{ - return false; -} - #include #endif /* __ASSEMBLY__ */