Skip to content

Commit 72d4afa

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 ea484ce commit 72d4afa

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
@@ -1054,6 +1054,7 @@ static int send(const struct device *instance, void *token, const void *msg, siz
10541054
alloc_size = len;
10551055
r = alloc_tx_buffer(dev_data, &alloc_size, &buffer, K_NO_WAIT);
10561056
if (r < 0) {
1057+
Z_SPIN_DELAY(1);
10571058
return r;
10581059
}
10591060

0 commit comments

Comments
 (0)