Date: Tue, 17 Jun 2014 13:14:31 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r267579 - stable/10/sys/kern Message-ID: <201406171314.s5HDEV7H075533@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Tue Jun 17 13:14:31 2014 New Revision: 267579 URL: http://svnweb.freebsd.org/changeset/base/267579 Log: MFC r266007: Initialize loginclass mutex using MTX_SYSINIT instead of using SI_SUB_CPU. Modified: stable/10/sys/kern/kern_loginclass.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/kern/kern_loginclass.c ============================================================================== --- stable/10/sys/kern/kern_loginclass.c Tue Jun 17 13:12:30 2014 (r267578) +++ stable/10/sys/kern/kern_loginclass.c Tue Jun 17 13:14:31 2014 (r267579) @@ -69,9 +69,7 @@ LIST_HEAD(, loginclass) loginclasses; * Lock protecting loginclasses list. */ static struct mtx loginclasses_lock; - -static void lc_init(void); -SYSINIT(loginclass, SI_SUB_CPU, SI_ORDER_FIRST, lc_init, NULL); +MTX_SYSINIT(loginclasses_init, &loginclasses_lock, "loginclasses lock", MTX_DEF); void loginclass_hold(struct loginclass *lc) @@ -229,10 +227,3 @@ loginclass_racct_foreach(void (*callback (callback)(lc->lc_racct, arg2, arg3); mtx_unlock(&loginclasses_lock); } - -static void -lc_init(void) -{ - - mtx_init(&loginclasses_lock, "loginclasses lock", NULL, MTX_DEF); -}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406171314.s5HDEV7H075533>