Skip to content

Commit

Permalink
riscv: Avoid calling sbi_clear_ipi()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Lukas Auer <[email protected]>
  • Loading branch information
lbmeng authored and Andes committed Mar 17, 2020
1 parent fe13692 commit f295e00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/riscv/lib/sbi_ipi.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <common.h>
#include <asm/encoding.h>
#include <asm/sbi.h>

int riscv_send_ipi(int hart)
Expand All @@ -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;
}
Expand Down

0 comments on commit f295e00

Please sign in to comment.