mirror of
https://github.com/OpenAMP/open-amp.git
synced 2026-10-02 18:23:21 +08:00
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>