Skip to contentSkip to conversation

parisc: Show model and model name in one line in /proc/cpuinfo

PATCH New Helge Deller 1 participant 1 message Apr 3, 2022 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: Show model and model name in one line in /proc/cpuinfo

The Linux tool "lscpu" shows double amount of CPUs if we have "model" and "model name" in two different lines in /proc/cpuinfo. This change combines the model and the model name in one line.

---
 arch/parisc/kernel/processor.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/parisc/kernel/processor.c +1 -2
index 9e92b76b0ce0..26eb568f8b96 100644
@@ -420,8 +420,7 @@ show_cpuinfo (struct seq_file *m, void *v)
 		}
 		seq_printf(m, " (0x%02lx)\n", boot_cpu_data.pdc.capabilities);
 
-		seq_printf(m, "model\t\t: %s\n"
-				"model name\t: %s\n",
+		seq_printf(m, "model\t\t: %s - %s\n",
 				 boot_cpu_data.pdc.sys_model_name,
 				 cpuinfo->dev ?
 				 cpuinfo->dev->name : "Unknown");

--
2.35.1