diff options
author | 2021-11-26 20:04:10 +0200 | |
---|---|---|
committer | 2022-01-09 10:40:00 -0800 | |
commit | 0e105f1d0037d677dff3c697d22f9551e6c39af8 (patch) | |
tree | b23c54e29aaf78cc05ef66173d19c73f66939e70 /lib/test_overflow.c | |
parent | riscv: Don't use va_pa_offset on kdump (diff) | |
download | wireguard-linux-0e105f1d0037d677dff3c697d22f9551e6c39af8.tar.xz wireguard-linux-0e105f1d0037d677dff3c697d22f9551e6c39af8.zip |
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 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions