|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH 1/2] plat/linuxu: fix ukplat_lcpu_halt_to
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
plat/linuxu/lcpu.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plat/linuxu/lcpu.c b/plat/linuxu/lcpu.c
index 42f5690..b6b5afe 100644
--- a/plat/linuxu/lcpu.c
+++ b/plat/linuxu/lcpu.c
@@ -50,7 +50,7 @@ void ukplat_lcpu_halt(void)
uk_printd(DLVL_WARN, "Failed to halt LCPU: %d\n", ret);
}
-void ukplat_lcpu_halt_to(unsigned long millis)
+void ukplat_lcpu_halt_to(__snsec nsecs)
{
int ret;
int nfds = 0;
@@ -59,8 +59,8 @@ void ukplat_lcpu_halt_to(unsigned long millis)
fd_set *exceptfds = NULL;
struct timespec timeout;
- timeout.tv_sec = millis / 1000;
- timeout.tv_nsec = millis % 1000 * 1000000;
+ timeout.tv_sec = ukarch_time_nsec_to_sec(nsecs);
+ timeout.tv_nsec = nsecs % 1000000;
ret = sys_pselect6(nfds, readfds, writefds, exceptfds, &timeout, NULL);
if (ret < 0)
--
2.11.0
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |