From ef5fd8a25ae15389101d594e2ff2824093f84f7a Mon Sep 17 00:00:00 2001 From: Chu Guangqing Date: Mon, 22 Dec 2025 16:30:20 +0800 Subject: [PATCH] anolis: arm64: Modify the CPU manufacturer to the correct ID ANBZ: #24712 K0SBZ:#10527 The ID of Ampere should be ARM_CPU_IMP_AMPERE Oxc0 Fix anolis: arm64: interpretation of the lag issue when reading /proc/cpuinfo Signed-off-by: Chu Guangqing --- arch/arm64/kernel/cpuinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index 10ea2faa0a7a..240746393a33 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -254,7 +254,7 @@ static int c_show(struct seq_file *m, void *v) id_aa64mmfr2_va_range_bits(cpuinfo->reg_id_aa64mmfr2)); /*Do not retrieve CPU frequency in the Ampere CPU environment.*/ - if (MIDR_IMPLEMENTOR(midr) != ARM_CPU_IMP_APM) + if (MIDR_IMPLEMENTOR(midr) != ARM_CPU_IMP_AMPERE) freq = arch_cpufreq_get_khz(cpu); if (!freq) freq = pv_cpufreq_get(); -- Gitee