]> git.ipfire.org Git - thirdparty/linux.git/commit
LoongArch: Consolidate CPU names in /proc/cpuinfo
authorHuacai Chen <chenhuacai@loongson.cn>
Thu, 20 Nov 2025 06:42:05 +0000 (14:42 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 20 Nov 2025 06:42:05 +0000 (14:42 +0800)
commit1c004609fdefb48888ef98bc6e3b8fe78ae4e088
tree316067e4db07fa62cd86c0cfac583f2f672a4fc5
parent20d7338f2d3bcb570068dd6d39b16f1a909fe976
LoongArch: Consolidate CPU names in /proc/cpuinfo

Some processors have no IOCSR.VENDOR and IOCSR.CPUNAME, some processors
have these registers but there is no valid information.

Consolidate CPU names in /proc/cpuinfo:
1. Add "PRID" to display the PRID & Core-Name;
2. Let "Model Name" display "Unknown" if no valid name.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/cpu.h
arch/loongarch/kernel/cpu-probe.c
arch/loongarch/kernel/proc.c