Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/rump/kernspace vmobjlock is now a pointer to kmutex_t....
details: https://anonhg.NetBSD.org/src/rev/10d6e1898079
branches: trunk
changeset: 765983:10d6e1898079
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Jun 12 06:38:14 2011 +0000
description:
vmobjlock is now a pointer to kmutex_t. use it as one.
diffstat:
tests/rump/kernspace/busypage.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (60 lines):
diff -r d92449ec151b -r 10d6e1898079 tests/rump/kernspace/busypage.c
--- a/tests/rump/kernspace/busypage.c Sun Jun 12 06:36:38 2011 +0000
+++ b/tests/rump/kernspace/busypage.c Sun Jun 12 06:38:14 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: busypage.c,v 1.3 2010/09/09 09:59:48 pooka Exp $ */
+/* $NetBSD: busypage.c,v 1.4 2011/06/12 06:38:14 mrg Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: busypage.c,v 1.3 2010/09/09 09:59:48 pooka Exp $");
+__RCSID("$NetBSD: busypage.c,v 1.4 2011/06/12 06:38:14 mrg Exp $");
#endif /* !lint */
#include <sys/param.h>
@@ -52,11 +52,11 @@
thread(void *arg)
{
- mutex_enter(&uobj->vmobjlock);
+ mutex_enter(uobj->vmobjlock);
threadrun = true;
cv_signal(&tcv);
testpg->flags |= PG_WANTED;
- UVM_UNLOCK_AND_WAIT(testpg, &uobj->vmobjlock, false, "tw", 0);
+ UVM_UNLOCK_AND_WAIT(testpg, uobj->vmobjlock, false, "tw", 0);
kthread_exit(0);
}
@@ -69,9 +69,9 @@
cv_init(&tcv, "napina");
uobj = uao_create(1, 0);
- mutex_enter(&uobj->vmobjlock);
+ mutex_enter(uobj->vmobjlock);
testpg = uvm_pagealloc(uobj, 0, NULL, 0);
- mutex_exit(&uobj->vmobjlock);
+ mutex_exit(uobj->vmobjlock);
if (testpg == NULL)
panic("couldn't create vm page");
@@ -80,12 +80,12 @@
if (rv)
panic("thread creation failed: %d", rv);
- mutex_enter(&uobj->vmobjlock);
+ mutex_enter(uobj->vmobjlock);
while (!threadrun)
- cv_wait(&tcv, &uobj->vmobjlock);
+ cv_wait(&tcv, uobj->vmobjlock);
uvm_page_unbusy(&testpg, 1);
- mutex_exit(&uobj->vmobjlock);
+ mutex_exit(uobj->vmobjlock);
rv = kthread_join(newl);
if (rv)
Home |
Main Index |
Thread Index |
Old Index