From: Huacai Chen Date: Tue, 17 Jan 2023 03:42:16 +0000 (+0800) Subject: LoongArch: Add HWCAP_LOONGARCH_CPUCFG to elf_hwcap X-Git-Tag: v6.1.8~147 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87615c0e5351c828888f96e8eb0dd96fff947dad;p=platform%2Fkernel%2Flinux-starfive.git LoongArch: Add HWCAP_LOONGARCH_CPUCFG to elf_hwcap commit d52fec86a465355b379e839fa372ead0334d62e6 upstream. HWCAP_LOONGARCH_CPUCFG is missing in elf_hwcap, so add it for glibc's later use. Cc: stable@vger.kernel.org Reported-by: Yinyu Cai Signed-off-by: Huacai Chen Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/loongarch/kernel/cpu-probe.c b/arch/loongarch/kernel/cpu-probe.c index 255a098..3a3fce2 100644 --- a/arch/loongarch/kernel/cpu-probe.c +++ b/arch/loongarch/kernel/cpu-probe.c @@ -94,7 +94,7 @@ static void cpu_probe_common(struct cpuinfo_loongarch *c) c->options = LOONGARCH_CPU_CPUCFG | LOONGARCH_CPU_CSR | LOONGARCH_CPU_TLB | LOONGARCH_CPU_VINT | LOONGARCH_CPU_WATCH; - elf_hwcap |= HWCAP_LOONGARCH_CRC32; + elf_hwcap = HWCAP_LOONGARCH_CPUCFG | HWCAP_LOONGARCH_CRC32; config = read_cpucfg(LOONGARCH_CPUCFG1); if (config & CPUCFG1_UAL) {