linux: arm64: cpuinfo: Add "model name" in /proc/cpuinfo for 64bit tasks also
Removed restriction of displaying model name for 32 bit tasks only.
Because of this Processor details were not displayed in
"System setting -> Details" in Ubuntu model name display is generic
and can be printed for 64 bit also.
model name : ARMv8 Processor rev X (v8l)
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Link: https://lore.kernel.org/lkml/1472461345-28219-1-git-send-email-sumitg@nvidia.com/
Reported-by: AmadeusGhost <amadeus@jmu.edu.cn>
Tested-by: AmadeusGhost <amadeus@jmu.edu.cn>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
(backport from 68692453e2)
This commit is contained in:
parent
cba1985b07
commit
236f828ae5
@ -0,0 +1,36 @@
|
||||
From: Sumit Gupta <sumitg@nvidia.com>
|
||||
To: <catalin.marinas@arm.com>, <linux-arm-kernel@lists.infradead.org>,
|
||||
<linux-kernel@vger.kernel.org>
|
||||
Cc: <will.deacon@arm.com>, <suzuki.poulose@arm.com>,
|
||||
<james.morse@arm.com>, <mark.rutland@arm.com>,
|
||||
<yang.shi@linaro.org>, <julien.grall@arm.com>,
|
||||
<steve.capper@linaro.org>, <bbasu@nvidia.com>,
|
||||
<linux-tegra@vger.kernel.org>, Sumit Gupta <sumitg@nvidia.com>
|
||||
Subject: [PATCH] arm64: cpuinfo: Add "model name" in /proc/cpuinfo for 64bit tasks also
|
||||
Date: Mon, 29 Aug 2016 14:32:25 +0530
|
||||
Message-ID: <1472461345-28219-1-git-send-email-sumitg@nvidia.com> (raw)
|
||||
|
||||
Removed restriction of displaying model name for 32 bit tasks only.
|
||||
Because of this Processor details were not displayed in
|
||||
"System setting -> Details" in Ubuntu model name display is generic
|
||||
and can be printed for 64 bit also.
|
||||
|
||||
model name : ARMv8 Processor rev X (v8l)
|
||||
|
||||
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
|
||||
---
|
||||
arch/arm64/kernel/cpuinfo.c | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
--- a/arch/arm64/kernel/cpuinfo.c
|
||||
+++ b/arch/arm64/kernel/cpuinfo.c
|
||||
@@ -136,8 +136,7 @@ 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",
|
||||
+ 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",
|
||||
@ -0,0 +1,36 @@
|
||||
From: Sumit Gupta <sumitg@nvidia.com>
|
||||
To: <catalin.marinas@arm.com>, <linux-arm-kernel@lists.infradead.org>,
|
||||
<linux-kernel@vger.kernel.org>
|
||||
Cc: <will.deacon@arm.com>, <suzuki.poulose@arm.com>,
|
||||
<james.morse@arm.com>, <mark.rutland@arm.com>,
|
||||
<yang.shi@linaro.org>, <julien.grall@arm.com>,
|
||||
<steve.capper@linaro.org>, <bbasu@nvidia.com>,
|
||||
<linux-tegra@vger.kernel.org>, Sumit Gupta <sumitg@nvidia.com>
|
||||
Subject: [PATCH] arm64: cpuinfo: Add "model name" in /proc/cpuinfo for 64bit tasks also
|
||||
Date: Mon, 29 Aug 2016 14:32:25 +0530
|
||||
Message-ID: <1472461345-28219-1-git-send-email-sumitg@nvidia.com> (raw)
|
||||
|
||||
Removed restriction of displaying model name for 32 bit tasks only.
|
||||
Because of this Processor details were not displayed in
|
||||
"System setting -> Details" in Ubuntu model name display is generic
|
||||
and can be printed for 64 bit also.
|
||||
|
||||
model name : ARMv8 Processor rev X (v8l)
|
||||
|
||||
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
|
||||
---
|
||||
arch/arm64/kernel/cpuinfo.c | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
--- a/arch/arm64/kernel/cpuinfo.c
|
||||
+++ b/arch/arm64/kernel/cpuinfo.c
|
||||
@@ -137,8 +137,7 @@ 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",
|
||||
+ 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",
|
||||
@ -0,0 +1,36 @@
|
||||
From: Sumit Gupta <sumitg@nvidia.com>
|
||||
To: <catalin.marinas@arm.com>, <linux-arm-kernel@lists.infradead.org>,
|
||||
<linux-kernel@vger.kernel.org>
|
||||
Cc: <will.deacon@arm.com>, <suzuki.poulose@arm.com>,
|
||||
<james.morse@arm.com>, <mark.rutland@arm.com>,
|
||||
<yang.shi@linaro.org>, <julien.grall@arm.com>,
|
||||
<steve.capper@linaro.org>, <bbasu@nvidia.com>,
|
||||
<linux-tegra@vger.kernel.org>, Sumit Gupta <sumitg@nvidia.com>
|
||||
Subject: [PATCH] arm64: cpuinfo: Add "model name" in /proc/cpuinfo for 64bit tasks also
|
||||
Date: Mon, 29 Aug 2016 14:32:25 +0530
|
||||
Message-ID: <1472461345-28219-1-git-send-email-sumitg@nvidia.com> (raw)
|
||||
|
||||
Removed restriction of displaying model name for 32 bit tasks only.
|
||||
Because of this Processor details were not displayed in
|
||||
"System setting -> Details" in Ubuntu model name display is generic
|
||||
and can be printed for 64 bit also.
|
||||
|
||||
model name : ARMv8 Processor rev X (v8l)
|
||||
|
||||
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
|
||||
---
|
||||
arch/arm64/kernel/cpuinfo.c | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
--- a/arch/arm64/kernel/cpuinfo.c
|
||||
+++ b/arch/arm64/kernel/cpuinfo.c
|
||||
@@ -118,8 +118,7 @@ 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",
|
||||
+ 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",
|
||||
Loading…
Reference in New Issue
Block a user