Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2006 22:11:00 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 94265 for review
Message-ID:  <200603292211.k2TMB0cS077840@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94265

Change 94265 by jhb@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603292211.k2TMB0cS077840>