| From 9fb8ad91c5e221d44089ca908311842d61c8f289 Mon Sep 17 00:00:00 2001 |
| From: Sam Shih <sam.shih@mediatek.com> |
| Date: Fri, 2 Jun 2023 13:06:02 +0800 |
| Subject: [PATCH] |
| [basic-part][999-2000-show_model_name_in_cpuinfo_on_arm64.patch] |
| |
| --- |
| arch/arm64/kernel/cpuinfo.c | 5 ++--- |
| 1 file changed, 2 insertions(+), 3 deletions(-) |
| |
| diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c |
| index 90b35011a..4324f12a2 100644 |
| --- a/arch/arm64/kernel/cpuinfo.c |
| +++ b/arch/arm64/kernel/cpuinfo.c |
| @@ -139,9 +139,8 @@ static int c_show(struct seq_file *m, void *v) |
| * "processor". Give glibc what it expects. |
| */ |
| seq_printf(m, "processor\t: %d\n", i); |
| - if (compat) |
| - seq_printf(m, "model name\t: ARMv8 Processor rev %d (%s)\n", |
| - MIDR_REVISION(midr), COMPAT_ELF_PLATFORM); |
| + seq_printf(m, "model name\t: ARMv8 Processor rev %d (%s)\n", |
| + MIDR_REVISION(midr), COMPAT_ELF_PLATFORM); |
| |
| seq_printf(m, "BogoMIPS\t: %lu.%02lu\n", |
| loops_per_jiffy / (500000UL/HZ), |
| -- |
| 2.34.1 |
| |