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 <bmeng.cn@gmail.com> Reviewed-by: Lukas Auer <lukas@auer.io>
This commit is contained in:
parent
fe13692e23
commit
f295e00c61
@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/encoding.h>
|
||||
#include <asm/sbi.h>
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user