Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Never autounload builtin modules (they will never b...



details:   https://anonhg.NetBSD.org/src/rev/4d8844c40a42
branches:  trunk
changeset: 753150:4d8844c40a42
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Mar 18 17:33:18 2010 +0000

description:
Never autounload builtin modules (they will never be autoloaded if disabled).

diffstat:

 sys/kern/kern_module.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 93c5671e8d90 -r 4d8844c40a42 sys/kern/kern_module.c
--- a/sys/kern/kern_module.c    Thu Mar 18 14:15:38 2010 +0000
+++ b/sys/kern/kern_module.c    Thu Mar 18 17:33:18 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_module.c,v 1.60 2010/03/05 20:10:05 pooka Exp $   */
+/*     $NetBSD: kern_module.c,v 1.61 2010/03/18 17:33:18 pooka Exp $   */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.60 2010/03/05 20:10:05 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.61 2010/03/18 17:33:18 pooka Exp $");
 
 #define _MODULE_INTERNAL
 
@@ -1170,6 +1170,8 @@
                mutex_enter(&module_lock);
                for (mod = TAILQ_FIRST(&module_list); mod != NULL; mod = next) {
                        next = TAILQ_NEXT(mod, mod_chain);
+                       if (mod->mod_source == MODULE_SOURCE_KERNEL)
+                               continue;
                        if (uvmexp.free < uvmexp.freemin) {
                                module_thread_ticks = hz;
                        } else if (mod->mod_autotime == 0) {



Home | Main Index | Thread Index | Old Index