From f99b002949e7454033b1b05f09488ea33213f707 Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Thu, 11 Mar 2021 15:28:03 +0800 Subject: [PATCH] arm64: display model name in /proc/cpuinfo (#6510) --- .../999-display-model-name-in-proc-cpuinfo.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 target/linux/generic/hack-5.4/999-display-model-name-in-proc-cpuinfo.patch diff --git a/target/linux/generic/hack-5.4/999-display-model-name-in-proc-cpuinfo.patch b/target/linux/generic/hack-5.4/999-display-model-name-in-proc-cpuinfo.patch new file mode 100644 index 000000000..2c07acc13 --- /dev/null +++ b/target/linux/generic/hack-5.4/999-display-model-name-in-proc-cpuinfo.patch @@ -0,0 +1,14 @@ +--- a/arch/arm64/kernel/cpuinfo.c ++++ b/arch/arm64/kernel/cpuinfo.c +@@ -139,9 +139,8 @@ static int c_show(struct seq_file *m, vo + * "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),