From 5c05a33716cfe840e1944fc832e926de2b3b5123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=85strand?= Date: Mon, 6 Sep 2021 17:25:57 +0200 Subject: Correct timescale of sleep for stub Change-Id: Idc818453362bd3cd4d1c35e1e2d1a9f0ccd7a0a6 --- driver_library/src/ethosu_stub.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/driver_library/src/ethosu_stub.cpp b/driver_library/src/ethosu_stub.cpp index 9dfc029..510007f 100644 --- a/driver_library/src/ethosu_stub.cpp +++ b/driver_library/src/ethosu_stub.cpp @@ -76,8 +76,9 @@ int eioctl(int, unsigned long cmd, void *) { } } -int epoll(struct pollfd *, nfds_t, int timeout) { - sleep(timeout / 2); +int epoll(struct pollfd *, nfds_t, int timeout_ms) { + int t = 1000 * timeout_ms / 2; + usleep(t); return 1; } } // namespace EthosU -- cgit v1.2.1