linux/arch
Anup Patel 4b26d22fdf
RISC-V: Show CPU ID and Hart ID separately in /proc/cpuinfo
Currently, /proc/cpuinfo show logical CPU ID as Hart ID which
is in-correct. This patch shows CPU ID and Hart ID separately
in /proc/cpuinfo using cpuid_to_hardid_map().

With this patch, contents of /proc/cpuinfo looks as follows:
processor	: 0
hart		: 1
isa		: rv64imafdc
mmu		: sv48

processor	: 1
hart		: 0
isa		: rv64imafdc
mmu		: sv48

processor	: 2
hart		: 2
isa		: rv64imafdc
mmu		: sv48

processor	: 3
hart		: 3
isa		: rv64imafdc
mmu		: sv48

Signed-off-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2018-10-22 17:03:37 -07:00
..
alpha
arc ARC: clone syscall to setp r25 as thread pointer 2018-10-05 14:33:29 -07:00
arm Leftover bugfixes. 2018-10-13 15:11:15 +02:00
arm64 arm64: perf: Reject stand-alone CHAIN events for PMUv3 2018-10-12 15:25:17 +01:00
c6x
h8300
hexagon
ia64
m68k
microblaze
mips MIPS: memset: Fix CPU_DADDI_WORKAROUNDS `small_fixup' regression 2018-10-05 09:41:39 -07:00
nds32
nios2
openrisc
parisc parisc: Fix uninitialized variable usage in unwind.c 2018-10-16 11:37:29 +02:00
powerpc libnvdimm/dax 4.19-rc8 2018-10-14 08:34:31 +02:00
riscv RISC-V: Show CPU ID and Hart ID separately in /proc/cpuinfo 2018-10-22 17:03:37 -07:00
s390 s390 fixes for 4.19-rc8 2018-10-10 08:44:35 +02:00
sh
sparc sparc: vDSO: Silence an uninitialized variable warning 2018-10-17 21:55:02 -07:00
um
unicore32
x86 x86/swiotlb: Enable swiotlb for > 4GiG RAM on 32-bit kernels 2018-10-19 07:49:32 +02:00
xtensa
.gitignore
Kconfig