Skip to content

Commit

Permalink
ipc: icbmsg: Fix issue in bsim integration
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jostn authored and dchat-nordic committed Oct 18, 2024
1 parent ea484ce commit 72d4afa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subsys/ipc/ipc_service/backends/ipc_icbmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,7 @@ static int send(const struct device *instance, void *token, const void *msg, siz
alloc_size = len;
r = alloc_tx_buffer(dev_data, &alloc_size, &buffer, K_NO_WAIT);
if (r < 0) {
Z_SPIN_DELAY(1);
return r;
}

Expand Down

0 comments on commit 72d4afa

Please sign in to comment.