LUR: Revert "BACKPORT: arm64: cpufeature: introduce helper cpu_has_hw_af()"

The LRU function is not compatible with GKI,
causing GKI to fail to start, so revert.

This reverts commit 3b34499f4bbabc44f1e46239024ca4fe07a00461.

Change-Id: I3f9a610dc3f0dbc9e935224956c1a21efc46d33d
Reviewed-on: https://gerrit.mot.com/2609785
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
xiewen3 2023-05-16 23:11:28 +08:00 • committed by Xiaojun Ji
commit 7a7ea6d35b

View file

@ -707,19 +707,6 @@ static inline u32 id_aa64mmfr0_parange_to_phys_shift(int parange)
extern bool cpu_has_amu_feat(int cpu);
#endif
/* Check whether hardware update of the Access flag is supported */
static inline bool cpu_has_hw_af(void)
{
u64 mmfr1;
if (!IS_ENABLED(CONFIG_ARM64_HW_AFDBM))
return false;
mmfr1 = read_cpuid(ID_AA64MMFR1_EL1);
return cpuid_feature_extract_unsigned_field(mmfr1,
ID_AA64MMFR1_HADBS_SHIFT);
}
#endif /* __ASSEMBLY__ */
#endif