Skip to content

Commit 4da3d46

Browse files
jostndchat-nordic
authored andcommitted
ipc: icbmsg: Fix issue in bsim integration
Add call to Z_SPIN_DELAY() to avoid issue in bsim where time does not progress in loop causing other threads to starve. Upstream PR: zephyrproject-rtos/zephyr#80043
1 parent 1f5f76d commit 4da3d46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/ipc/ipc_service/backends/ipc_icbmsg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,7 @@ static int send(const struct device *instance, void *token, const void *msg, siz
10611061
alloc_size = len;
10621062
r = alloc_tx_buffer(dev_data, &alloc_size, &buffer, K_NO_WAIT);
10631063
if (r < 0) {
1064+
Z_SPIN_DELAY(1);
10641065
return r;
10651066
}
10661067

0 commit comments

Comments
 (0)