diff options
author | Nick Kossifidis <mick@ics.forth.gr> | 2021-11-26 20:04:10 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2022-01-09 10:40:00 -0800 |
commit | 0e105f1d0037d677dff3c697d22f9551e6c39af8 (patch) | |
tree | b23c54e29aaf78cc05ef66173d19c73f66939e70 /arch/powerpc/kernel/stacktrace.c | |
parent | a11c07f032a0e9a562a32ece73af96b0e754c4b3 (diff) |
riscv: use hart id instead of cpu id on machine_kexec
raw_smp_processor_id() doesn't return the hart id as stated in
arch/riscv/include/asm/smp.h, use smp_processor_id() instead
to get the cpu id, and cpuid_to_hartid_map() to pass the hart id
to the next kernel. This fixes kexec on HiFive Unleashed/Unmatched
where cpu ids and hart ids don't match (on qemu-virt they match).
Fixes: fba8a8674f68 ("RISC-V: Add kexec support")
Signed-off-by: Nick Kossifidis <mick@ics.forth.gr>
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/powerpc/kernel/stacktrace.c')
0 files changed, 0 insertions, 0 deletions