PERFORCE change 94265 for review
John Baldwin
jhb at FreeBSD.org
Wed Mar 29 22:11:01 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=94265
Change 94265 by jhb at jhb_twclab on 2006/03/29 22:10:36
Only require locking for !cold.
Affected files ...
.. //depot/projects/smpng/sys/kern/kern_linker.c#50 edit
Differences ...
==== //depot/projects/smpng/sys/kern/kern_linker.c#50 (text+ko) ====
@@ -63,7 +63,7 @@
#define KLD_LOCK() do { sx_xlock(&kld_sx); mtx_lock(&Giant); } while (0)
#define KLD_UNLOCK() do { mtx_unlock(&Giant); sx_xunlock(&kld_sx); } while (0)
-#define KLD_LOCK_ASSERT() do { if (linker_no_more_classes) sx_assert(&kld_sx, SX_XLOCKED); } while (0)
+#define KLD_LOCK_ASSERT() do { if (!cold) sx_assert(&kld_sx, SX_XLOCKED); } while (0)
/*
* static char *linker_search_path(const char *name, struct mod_depend
More information about the p4-projects
mailing list