]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
parisc: Merge model and model name into one line in /proc/cpuinfo
authorHelge Deller <deller@gmx.de>
Sun, 3 Apr 2022 19:57:51 +0000 (21:57 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 22 Jun 2022 12:23:07 +0000 (14:23 +0200)
BugLink: https://bugs.launchpad.net/bugs/1978240
commit 5b89966bc96a06f6ad65f64ae4b0461918fcc9d3 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/parisc/kernel/processor.c

index 1b6129e7d776b5da798280f8c6616818cfc06bb4..b861bbbc87178741587784ea3f78f9a555cdcd4a 100644 (file)
@@ -418,8 +418,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");