Module Name: src Committed By: pooka Date: Wed Apr 14 10:34:55 UTC 2010
Modified Files: src/sys/rump/librump/rumpkern: locks.c Log Message: Add comment about clock mismatch. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/sys/rump/librump/rumpkern/locks.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/librump/rumpkern/locks.c diff -u src/sys/rump/librump/rumpkern/locks.c:1.38 src/sys/rump/librump/rumpkern/locks.c:1.39 --- src/sys/rump/librump/rumpkern/locks.c:1.38 Sun Jan 31 00:54:22 2010 +++ src/sys/rump/librump/rumpkern/locks.c Wed Apr 14 10:34:54 2010 @@ -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);