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 Cast Oh Kath Ra once every second.
details: https://anonhg.NetBSD.org/src/rev/bdfcb9515c63
branches: trunk
changeset: 749691:bdfcb9515c63
user: pooka <pooka%NetBSD.org@localhost>
date: Sat Dec 05 22:44:08 2009 +0000
description:
Cast Oh Kath Ra once every second.
diffstat:
sys/rump/librump/rumpkern/intr.c | 8 ++++++--
sys/rump/librump/rumpkern/ltsleep.c | 6 ++----
2 files changed, 8 insertions(+), 6 deletions(-)
diffs (70 lines):
diff -r 3e07e1703ad6 -r bdfcb9515c63 sys/rump/librump/rumpkern/intr.c
--- a/sys/rump/librump/rumpkern/intr.c Sat Dec 05 22:43:34 2009 +0000
+++ b/sys/rump/librump/rumpkern/intr.c Sat Dec 05 22:44:08 2009 +0000
@@ -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
diff -r 3e07e1703ad6 -r bdfcb9515c63 sys/rump/librump/rumpkern/ltsleep.c
--- a/sys/rump/librump/rumpkern/ltsleep.c Sat Dec 05 22:43:34 2009 +0000
+++ b/sys/rump/librump/rumpkern/ltsleep.c Sat Dec 05 22:44:08 2009 +0000
@@ -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)
{
Home |
Main Index |
Thread Index |
Old Index