OSDN Git Service

70cfadca9cf906dfa688922d4903306e468a4fb6
[immortalwrt/immortalwrt.git] / target / linux / generic / hack-5.15 / 312-arm64-cpuinfo-Add-model-name-in-proc-cpuinfo-for-64bit-ta.patch
1 From: Sumit Gupta <sumitg@nvidia.com>
2 To: <catalin.marinas@arm.com>, <linux-arm-kernel@lists.infradead.org>,
3         <linux-kernel@vger.kernel.org>
4 Cc: <will.deacon@arm.com>, <suzuki.poulose@arm.com>,
5         <james.morse@arm.com>, <mark.rutland@arm.com>,
6         <yang.shi@linaro.org>, <julien.grall@arm.com>,
7         <steve.capper@linaro.org>, <bbasu@nvidia.com>,
8         <linux-tegra@vger.kernel.org>, Sumit Gupta <sumitg@nvidia.com>
9 Subject: [PATCH] arm64: cpuinfo: Add "model name" in /proc/cpuinfo for 64bit tasks also
10 Date: Mon, 29 Aug 2016 14:32:25 +0530
11 Message-ID: <1472461345-28219-1-git-send-email-sumitg@nvidia.com> (raw)
12
13 Removed restriction of displaying model name for 32 bit tasks only.
14 Because of this Processor details were not displayed in
15 "System setting -> Details" in Ubuntu model name display is generic
16 and can be printed for 64 bit also.
17
18 model name : ARMv8 Processor rev X (v8l)
19
20 Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
21 ---
22  arch/arm64/kernel/cpuinfo.c | 3 +--
23  1 file changed, 1 insertion(+), 2 deletions(-)
24
25 --- a/arch/arm64/kernel/cpuinfo.c
26 +++ b/arch/arm64/kernel/cpuinfo.c
27 @@ -148,9 +148,8 @@ static int c_show(struct seq_file *m, vo
28                  * "processor".  Give glibc what it expects.
29                  */
30                 seq_printf(m, "processor\t: %d\n", i);
31 -               if (compat)
32 -                       seq_printf(m, "model name\t: ARMv8 Processor rev %d (%s)\n",
33 -                                  MIDR_REVISION(midr), COMPAT_ELF_PLATFORM);
34 +               seq_printf(m, "model name\t: ARMv8 Processor rev %d (%s)\n",
35 +                          MIDR_REVISION(midr), COMPAT_ELF_PLATFORM);
36  
37                 seq_printf(m, "BogoMIPS\t: %lu.%02lu\n",
38                            loops_per_jiffy / (500000UL/HZ),