RISC-V: Rename and move plic_find_hart_id() to arch directory
authorAnup Patel <anup.patel@wdc.com>
Mon, 1 Jun 2020 09:15:39 +0000 (14:45 +0530)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 10 Jun 2020 02:11:20 +0000 (19:11 -0700)
commitd175d699df07041befda3779f29bf7126c298730
tree836e0da380d6b6e4ed2cc1cd50359c1ed75f2978
parent5cf998ba8c7bbbfec3e0d6534c9a3f860ab9920e
RISC-V: Rename and move plic_find_hart_id() to arch directory

The plic_find_hart_id() can be useful to other interrupt controller
drivers (such as RISC-V local interrupt driver) so we rename this
function to riscv_of_parent_hartid() and place it in arch directory
along with riscv_of_processor_hartid().

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/processor.h
arch/riscv/kernel/cpu.c
drivers/irqchip/irq-sifive-plic.c