File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 15
15
#include <metal/sys.h>
16
16
#include <metal/utilities.h>
17
17
#include <metal/alloc.h>
18
+ #include <metal/sleep.h>
18
19
19
20
static void rproc_virtio_delete_virtqueues (struct virtio_device * vdev )
20
21
{
@@ -412,6 +413,6 @@ void rproc_virtio_wait_remote_ready(struct virtio_device *vdev)
412
413
status = rproc_virtio_get_status (vdev );
413
414
if (status & VIRTIO_CONFIG_STATUS_DRIVER_OK )
414
415
return ;
415
- metal_yield ( );
416
+ metal_sleep_usec ( 1000 );
416
417
}
417
418
}
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ static int rpmsg_virtio_wait_remote_ready(struct rpmsg_virtio_device *rvdev)
272
272
} else if (status & VIRTIO_CONFIG_STATUS_DRIVER_OK ) {
273
273
return 0 ;
274
274
}
275
- metal_yield ( );
275
+ metal_sleep_usec ( 1000 );
276
276
}
277
277
}
278
278
You can’t perform that action at this time.
0 commit comments