lib: sbi: Optimize sbi_tlb and sbi_ipi

This patch comes from:
[PATCH v4 0/4] Miscellaneous about sbi_tlb and sbi_ipi
http://lists.infradead.org/pipermail/opensbi/2023-February/004402.html
This commit is contained in:
xiaoguang.xing
2023-03-07 09:16:04 +08:00
parent 35fb234d39
commit b210bc000c
3 changed files with 61 additions and 35 deletions

View File

@@ -41,6 +41,10 @@ struct sbi_ipi_event_ops {
* Update callback to save/enqueue data for remote HART
* Note: This is an optional callback and it is called just before
* triggering IPI to remote HART.
* @return 0 success
* @return -1 break IPI, done on local hart
* @return -2 need retry
*/
int (* update)(struct sbi_scratch *scratch,
struct sbi_scratch *remote_scratch,