Module Name: src Committed By: pooka Date: Sat Dec 5 22:44:08 UTC 2009
Modified Files: src/sys/rump/librump/rumpkern: intr.c ltsleep.c Log Message: Cast Oh Kath Ra once every second. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/rump/librump/rumpkern/intr.c \ src/sys/rump/librump/rumpkern/ltsleep.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/intr.c diff -u src/sys/rump/librump/rumpkern/intr.c:1.22 src/sys/rump/librump/rumpkern/intr.c:1.23 --- src/sys/rump/librump/rumpkern/intr.c:1.22 Tue Dec 1 09:50:51 2009 +++ src/sys/rump/librump/rumpkern/intr.c Sat Dec 5 22:44:08 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: intr.c,v 1.22 2009/12/01 09:50:51 pooka Exp $ */ +/* $NetBSD: intr.c,v 1.23 2009/12/05 22:44:08 pooka Exp $ */ /* * Copyright (c) 2008 Antti Kantee. All Rights Reserved. @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.22 2009/12/01 09:50:51 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.23 2009/12/05 22:44:08 pooka Exp $"); #include <sys/param.h> #include <sys/cpu.h> @@ -69,6 +69,8 @@ static struct timespec clockbase, clockup; static unsigned clkgen; +kcondvar_t lbolt; /* Oh Kath Ra */ + void rump_getuptime(struct timespec *ts) { @@ -127,6 +129,7 @@ if (++ticks == hz) { time_uptime++; ticks = 0; + cv_broadcast(&lbolt); } clkgen++; @@ -206,6 +209,7 @@ rumpuser_mutex_init(&si_mtx); rumpuser_cv_init(&clockcv); rumpuser_mutex_init(&clockmtx); + cv_init(&lbolt, "oh kath ra"); } void Index: src/sys/rump/librump/rumpkern/ltsleep.c diff -u src/sys/rump/librump/rumpkern/ltsleep.c:1.22 src/sys/rump/librump/rumpkern/ltsleep.c:1.23 --- src/sys/rump/librump/rumpkern/ltsleep.c:1.22 Sat Dec 5 13:01:31 2009 +++ src/sys/rump/librump/rumpkern/ltsleep.c Sat Dec 5 22:44:08 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: ltsleep.c,v 1.22 2009/12/05 13:01:31 pooka Exp $ */ +/* $NetBSD: ltsleep.c,v 1.23 2009/12/05 22:44:08 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ltsleep.c,v 1.22 2009/12/05 13:01:31 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ltsleep.c,v 1.23 2009/12/05 22:44:08 pooka Exp $"); #include <sys/param.h> #include <sys/kernel.h> @@ -55,8 +55,6 @@ static LIST_HEAD(, ltsleeper) sleepers = LIST_HEAD_INITIALIZER(sleepers); -kcondvar_t lbolt; /* Oh Kath Ra */ - static int sleeper(struct ltsleeper *ltsp, int timo) {