parisc: Fix /proc/cpuinfo output for lscpu
authorHelge Deller <deller@gmx.de>
Fri, 18 Aug 2023 20:48:04 +0000 (22:48 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 22 Aug 2023 08:24:46 +0000 (10:24 +0200)
commit9f5ba4b3e1b3c123eeca5d2d09161e8720048b5c
tree969886d814d56988e6fafaaece148b852a454e17
parent51c70a09c315fd2ad0c836392c6dab53839a59d3
parisc: Fix /proc/cpuinfo output for lscpu

The lscpu command is broken since commit cab56b51ec0e ("parisc: Fix
device names in /proc/iomem") added the PA pathname to all PA
devices, includig the CPUs.

lscpu parses /proc/cpuinfo and now believes it found different CPU
types since every CPU is listed with an unique identifier (PA
pathname).

Fix this problem by simply dropping the PA pathname when listing the
CPUs in /proc/cpuinfo. There is no need to show the pathname in this
procfs file.

Fixes: cab56b51ec0e ("parisc: Fix device names in /proc/iomem")
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org> # v4.9+
arch/parisc/kernel/processor.c