Skip to content
Unverified Commit c5136add authored by Klara Modin's avatar Klara Modin Committed by Palmer Dabbelt
Browse files

riscv: export boot_cpu_hartid

The mailbox controller driver for the Microchip Inter-processor
Communication can be built as a module. It uses cpuid_to_hartid_map and
commit 4783ce32 ("riscv: export __cpuid_to_hartid_map") enables that
to work for SMP. However, cpuid_to_hartid_map uses boot_cpu_hartid on
non-SMP kernels and this driver can be useful in such configurations[1].

Export boot_cpu_hartid so the driver can be built as a module on non-SMP
kernels as well.

Link: https://lore.kernel.org/lkml/20250617-confess-reimburse-876101e099cb@spud/

 [1]
Cc: stable@vger.kernel.org
Fixes: e4b1d67e ("mailbox: add Microchip IPC support")
Signed-off-by: default avatarKlara Modin <klarasmodin@gmail.com>
Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20250617125847.23829-1-klarasmodin@gmail.com


Signed-off-by: default avatarPalmer Dabbelt <palmer@dabbelt.com>
parent 890ba5be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment