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 update for new hypercalls



details:   https://anonhg.NetBSD.org/src/rev/6a45fc1b1428
branches:  trunk
changeset: 786664:6a45fc1b1428
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon May 06 16:28:17 2013 +0000

description:
update for new hypercalls

diffstat:

 sys/rump/librump/rumpkern/locks_up.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 72830671c050 -r 6a45fc1b1428 sys/rump/librump/rumpkern/locks_up.c
--- a/sys/rump/librump/rumpkern/locks_up.c      Mon May 06 14:52:51 2013 +0000
+++ b/sys/rump/librump/rumpkern/locks_up.c      Mon May 06 16:28:17 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locks_up.c,v 1.8 2013/04/28 13:37:52 pooka Exp $       */
+/*     $NetBSD: locks_up.c,v 1.9 2013/05/06 16:28:17 pooka Exp $       */
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: locks_up.c,v 1.8 2013/04/28 13:37:52 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locks_up.c,v 1.9 2013/05/06 16:28:17 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -426,8 +426,11 @@
 bool
 cv_has_waiters(kcondvar_t *cv)
 {
+       int n;
 
-       return rumpuser_cv_has_waiters(RUMPCV(cv));
+       rumpuser_cv_has_waiters(RUMPCV(cv), &n);
+
+       return n > 0;
 }
 
 /* this is not much of an attempt, but ... */



Home | Main Index | Thread Index | Old Index