提交 7485622b 编写于 作者: H Helge Deller 提交者: Zheng Zengkai

parisc: Merge model and model name into one line in /proc/cpuinfo

stable inclusion
from stable-v5.10.115
commit a196f277c547066a185d7760c08c65a099d815ed
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5IZ9C

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a196f277c547066a185d7760c08c65a099d815ed

--------------------------------

commit 5b89966b 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: NHelge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 3454b112
...@@ -419,8 +419,7 @@ show_cpuinfo (struct seq_file *m, void *v) ...@@ -419,8 +419,7 @@ show_cpuinfo (struct seq_file *m, void *v)
} }
seq_printf(m, " (0x%02lx)\n", boot_cpu_data.pdc.capabilities); seq_printf(m, " (0x%02lx)\n", boot_cpu_data.pdc.capabilities);
seq_printf(m, "model\t\t: %s\n" seq_printf(m, "model\t\t: %s - %s\n",
"model name\t: %s\n",
boot_cpu_data.pdc.sys_model_name, boot_cpu_data.pdc.sys_model_name,
cpuinfo->dev ? cpuinfo->dev ?
cpuinfo->dev->name : "Unknown"); cpuinfo->dev->name : "Unknown");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册