diff options
author | Anup Patel <[email protected]> | 2018-10-02 12:15:06 -0700 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2018-10-22 17:03:37 -0700 |
commit | 4b26d22fdff1e39647cc5952b01d329e83dedfe1 (patch) | |
tree | 83fa6fc257ee0249ca954b35600cc468c0e5d79c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f99fb607fb2bc0d4ce6b9adb764c65e37f40a92b (diff) |
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 <[email protected]>
Signed-off-by: Atish Patra <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions