From: Bin Meng Date: Fri, 6 Mar 2020 08:44:17 +0000 (-0800) Subject: riscv: Avoid calling sbi_clear_ipi() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=f295e00c61100960182b3bbcf5d823bd51487420;p=u-boot.git riscv: Avoid calling sbi_clear_ipi() There is no need for S-mode U-Boot to call sbi_clear_ipi() as it can be cleared directly from S-mode. This saves some cycles. Signed-off-by: Bin Meng Reviewed-by: Lukas Auer --- diff --git a/arch/riscv/lib/sbi_ipi.c b/arch/riscv/lib/sbi_ipi.c index 9a698ce74e..abafca9e5c 100644 --- a/arch/riscv/lib/sbi_ipi.c +++ b/arch/riscv/lib/sbi_ipi.c @@ -5,6 +5,7 @@ */ #include +#include #include int riscv_send_ipi(int hart) @@ -19,7 +20,7 @@ int riscv_send_ipi(int hart) int riscv_clear_ipi(int hart) { - sbi_clear_ipi(); + csr_clear(CSR_SIP, SIP_SSIP); return 0; }