Skip to content

Commit 5b89966

Browse files
committed
parisc: Merge model and model name into one line in /proc/cpuinfo
The Linux tool "lscpu" shows the 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 into one line. Signed-off-by: Helge Deller <deller@gmx.de> Cc: stable@vger.kernel.org
1 parent 1955c4f commit 5b89966

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

arch/parisc/kernel/processor.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,7 @@ show_cpuinfo (struct seq_file *m, void *v)
420420
}
421421
seq_printf(m, " (0x%02lx)\n", boot_cpu_data.pdc.capabilities);
422422

423-
seq_printf(m, "model\t\t: %s\n"
424-
"model name\t: %s\n",
423+
seq_printf(m, "model\t\t: %s - %s\n",
425424
boot_cpu_data.pdc.sys_model_name,
426425
cpuinfo->dev ?
427426
cpuinfo->dev->name : "Unknown");

0 commit comments

Comments
 (0)