aboutsummaryrefslogtreecommitdiff
path: root/kernel/ethosu_cancel_inference.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/ethosu_cancel_inference.c')
-rw-r--r--kernel/ethosu_cancel_inference.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/ethosu_cancel_inference.c b/kernel/ethosu_cancel_inference.c
index c1d31b3..61f7a9c 100644
--- a/kernel/ethosu_cancel_inference.c
+++ b/kernel/ethosu_cancel_inference.c
@@ -24,7 +24,7 @@
#include "ethosu_cancel_inference.h"
-#include "ethosu_core_interface.h"
+#include "ethosu_core_rpmsg.h"
#include "ethosu_device.h"
#include "ethosu_inference.h"
@@ -143,17 +143,17 @@ kfree:
}
void ethosu_cancel_inference_rsp(struct ethosu_device *edev,
- struct ethosu_core_cancel_inference_rsp *rsp)
+ int msg_id,
+ struct ethosu_core_msg_cancel_inference_rsp *rsp)
{
- int id = (int)rsp->user_arg;
struct ethosu_mailbox_msg *msg;
struct ethosu_cancel_inference *cancellation;
- msg = ethosu_mailbox_find(&edev->mailbox, id);
+ msg = ethosu_mailbox_find(&edev->mailbox, msg_id);
if (IS_ERR(msg)) {
dev_warn(edev->dev,
- "Handle not found in cancel inference list. handle=0x%p\n",
- rsp);
+ "Id for cancel inference msg not found. id=%d\n",
+ msg_id);
return;
}