Skip to content

Commit c30a6d8

Browse files
arnopocarlescufi
authored andcommitted
lib: update open-amp lib to SHA 3737f8b18ad2
Origin: https://github.com/OpenAMP/open-amp Commit: 3737f8b18ad24a3b091a11cc6ea320d8b0576da5 Status: Update to open-amp main branch that integrates: 3737f8b18ad2 ("rpmsg_virtio.c: wait_remote_ready use sleep instead to avoid starvation") Signed-off-by: Arnaud Pouliquen <[email protected]>
1 parent aa200f3 commit c30a6d8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

open-amp/lib/remoteproc/remoteproc_virtio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <metal/sys.h>
1616
#include <metal/utilities.h>
1717
#include <metal/alloc.h>
18+
#include <metal/sleep.h>
1819

1920
static void rproc_virtio_delete_virtqueues(struct virtio_device *vdev)
2021
{
@@ -412,6 +413,6 @@ void rproc_virtio_wait_remote_ready(struct virtio_device *vdev)
412413
status = rproc_virtio_get_status(vdev);
413414
if (status & VIRTIO_CONFIG_STATUS_DRIVER_OK)
414415
return;
415-
metal_yield();
416+
metal_sleep_usec(1000);
416417
}
417418
}

open-amp/lib/rpmsg/rpmsg_virtio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static int rpmsg_virtio_wait_remote_ready(struct rpmsg_virtio_device *rvdev)
272272
} else if (status & VIRTIO_CONFIG_STATUS_DRIVER_OK) {
273273
return 0;
274274
}
275-
metal_yield();
275+
metal_sleep_usec(1000);
276276
}
277277
}
278278

0 commit comments

Comments
 (0)