Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpkern Add comment about clock mismatch.
details: https://anonhg.NetBSD.org/src/rev/6111321694b5
branches: trunk
changeset: 753940:6111321694b5
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Apr 14 10:34:54 2010 +0000
description:
Add comment about clock mismatch.
diffstat:
sys/rump/librump/rumpkern/locks.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r d5a0e8a71bf3 -r 6111321694b5 sys/rump/librump/rumpkern/locks.c
--- a/sys/rump/librump/rumpkern/locks.c Wed Apr 14 10:27:53 2010 +0000
+++ b/sys/rump/librump/rumpkern/locks.c Wed Apr 14 10:34:54 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locks.c,v 1.38 2010/01/31 00:54:22 snj Exp $ */
+/* $NetBSD: locks.c,v 1.39 2010/04/14 10:34:54 pooka Exp $ */
/*
* Copyright (c) 2007, 2008 Antti Kantee. All Rights Reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.38 2010/01/31 00:54:22 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.39 2010/04/14 10:34:54 pooka Exp $");
#include <sys/param.h>
#include <sys/kmem.h>
@@ -225,6 +225,10 @@
struct timespec ts, tick;
extern int hz;
+ /*
+ * XXX: this fetches rump kernel time, but rumpuser_cv_timedwait
+ * uses host time.
+ */
nanotime(&ts);
tick.tv_sec = ticks / hz;
tick.tv_nsec = (ticks % hz) * (1000000000/hz);
Home |
Main Index |
Thread Index |
Old Index