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 KERNEL_UNLOCK_LAST in non-mpsafe k...



details:   https://anonhg.NetBSD.org/src/rev/02e869cddb28
branches:  trunk
changeset: 749663:02e869cddb28
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Dec 05 12:54:11 2009 +0000

description:
KERNEL_UNLOCK_LAST in non-mpsafe kthread exit.

diffstat:

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

diffs (27 lines):

diff -r 04e46e360f5c -r 02e869cddb28 sys/rump/librump/rumpkern/threads.c
--- a/sys/rump/librump/rumpkern/threads.c       Sat Dec 05 12:38:05 2009 +0000
+++ b/sys/rump/librump/rumpkern/threads.c       Sat Dec 05 12:54:11 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: threads.c,v 1.5 2009/12/03 12:16:36 pooka Exp $        */
+/*     $NetBSD: threads.c,v 1.6 2009/12/05 12:54:11 pooka Exp $        */
 
 /*
  * Copyright (c) 2007-2009 Antti Kantee.  All Rights Reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: threads.c,v 1.5 2009/12/03 12:16:36 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: threads.c,v 1.6 2009/12/05 12:54:11 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -154,7 +154,7 @@
 {
 
        if ((curlwp->l_pflag & LP_MPSAFE) == 0)
-               KERNEL_UNLOCK_ONE(NULL);
+               KERNEL_UNLOCK_LAST(NULL);
        rump_lwp_release(curlwp);
        rump_unschedule();
        rumpuser_thread_exit();



Home | Main Index | Thread Index | Old Index