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 ignore pmf threads if RUMP_THREADS...



details:   https://anonhg.NetBSD.org/src/rev/119c4947dbda
branches:  trunk
changeset: 751197:119c4947dbda
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jan 27 20:16:16 2010 +0000

description:
ignore pmf threads if RUMP_THREADS == 0

diffstat:

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

diffs (29 lines):

diff -r 781183e4c3ae -r 119c4947dbda sys/rump/librump/rumpkern/threads.c
--- a/sys/rump/librump/rumpkern/threads.c       Wed Jan 27 19:10:30 2010 +0000
+++ b/sys/rump/librump/rumpkern/threads.c       Wed Jan 27 20:16:16 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: threads.c,v 1.6 2009/12/05 12:54:11 pooka Exp $        */
+/*     $NetBSD: threads.c,v 1.7 2010/01/27 20:16:16 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.6 2009/12/05 12:54:11 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: threads.c,v 1.7 2010/01/27 20:16:16 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -119,6 +119,10 @@
                        printf("rump warning: threads not enabled, not enabling"
                           " UNP garbage collection\n");
                        return 0;
+               } else if (strncmp(thrstore, "pmf", sizeof("pmf")-1) == 0) {
+                       printf("rump warning: threads not enabled, not enabling"
+                          " pmf thread\n");
+                       return 0;
                } else if (strncmp(thrstore, "xcall", sizeof("xcall")-1) == 0) {
                        printf("rump warning: threads not enabled, CPU xcall"
                           " not functional\n");



Home | Main Index | Thread Index | Old Index