Module Name: src Committed By: pooka Date: Sat Dec 5 12:54:11 UTC 2009
Modified Files: src/sys/rump/librump/rumpkern: threads.c Log Message: KERNEL_UNLOCK_LAST in non-mpsafe kthread exit. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/rump/librump/rumpkern/threads.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/threads.c diff -u src/sys/rump/librump/rumpkern/threads.c:1.5 src/sys/rump/librump/rumpkern/threads.c:1.6 --- src/sys/rump/librump/rumpkern/threads.c:1.5 Thu Dec 3 12:16:36 2009 +++ src/sys/rump/librump/rumpkern/threads.c Sat Dec 5 12:54:11 2009 @@ -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();