Branch: refs/heads/main Home: https://github.com/OpenAMP/open-amp Commit: 3737f8b18ad24a3b091a11cc6ea320d8b0576da5 https://github.com/OpenAMP/open-amp/commit/3737f8b18ad24a3b091a11cc6ea320d8b... Author: Peter van der Perk peter.vanderperk@nxp.com Date: 2025-05-12 (Mon, 12 May 2025)
Changed paths: M lib/remoteproc/remoteproc_virtio.c M lib/rpmsg/rpmsg_virtio.c
Log Message: ----------- rpmsg_virtio.c: wait_remote_ready use sleep instead to avoid starvation
metal_cpu_yield can either result in an unimplemented function or a yield function. The yield function however only yields execution to another thread of the same or higher priority. Thus starving any lower priority threads.
wait_remote_ready can be blocked for a long time i.e. seconds waiting on the remote core to start communication.
Instead use metal_sleep_usec, allowing lower priority tasks to be executed. While waiting on the remote core.
Signed-off-by: Peter van der Perk peter.vanderperk@nxp.com
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/open-amp/settings/notifications
openamp-rp@lists.openampproject.org