All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] arm64: Always provide "model name" in /proc/cpuinfo
@ 2017-05-01 22:39 ` Heinrich Schuchardt
  0 siblings, 0 replies; 14+ messages in thread
From: Heinrich Schuchardt @ 2017-05-01 22:39 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon
  Cc: Suzuki K Poulose, Andre Przywara, Steve Capper, Julien Grall,
	linux-arm-kernel, linux-kernel, Heinrich Schuchardt

There is no need to hide the model name in processes
that are not PER_LINUX32.

So let us always provide a model name that is easily readable.

Fixes: e47b020a323d ("arm64: Provide "model name" in /proc/cpuinfo for PER_LINUX32 tasks")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 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 b3d5b3e8fbcb..9ad9ddcd2f19 100644
--- a/arch/arm64/kernel/cpuinfo.c
+++ b/arch/arm64/kernel/cpuinfo.c
@@ -118,9 +118,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.11.0

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-05-06  6:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-01 22:39 [PATCH 1/1] arm64: Always provide "model name" in /proc/cpuinfo Heinrich Schuchardt
2017-05-01 22:39 ` Heinrich Schuchardt
2017-05-02 11:08 ` Catalin Marinas
2017-05-02 11:08   ` Catalin Marinas
2017-05-02 12:37   ` Mark Rutland
2017-05-02 12:37     ` Mark Rutland
2017-05-02 16:28   ` Heinrich Schuchardt
2017-05-02 16:28     ` Heinrich Schuchardt
2017-05-02 16:43     ` Sudeep Holla
2017-05-02 16:43       ` Sudeep Holla
2017-05-02 16:48     ` Mark Rutland
2017-05-02 16:48       ` Mark Rutland
2017-05-06  6:57   ` Jon Masters
2017-05-06  6:57     ` Jon Masters

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.