Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2018 00:47:18 +0000 (UTC)
From:      Matt Macy <mmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335524 - head/sys/kern
Message-ID:  <201806220047.w5M0lIeC065554@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmacy
Date: Fri Jun 22 00:47:18 2018
New Revision: 335524
URL: https://svnweb.freebsd.org/changeset/base/335524

Log:
  epoch(9): make non-preemptible variant work early boot

Modified:
  head/sys/kern/subr_epoch.c

Modified: head/sys/kern/subr_epoch.c
==============================================================================
--- head/sys/kern/subr_epoch.c	Fri Jun 22 00:41:36 2018	(r335523)
+++ head/sys/kern/subr_epoch.c	Fri Jun 22 00:47:18 2018	(r335524)
@@ -307,6 +307,7 @@ epoch_enter(epoch_t epoch)
 	struct thread *td;
 
 	MPASS(cold || epoch != NULL);
+	INIT_CHECK(epoch);
 	td = curthread;
 
 	critical_enter();
@@ -344,6 +345,7 @@ epoch_exit(epoch_t epoch)
 	ck_epoch_record_t *record;
 	struct thread *td;
 
+	INIT_CHECK(epoch);
 	td = curthread;
 	td->td_epochnest--;
 	record = &epoch->e_pcpu[curcpu]->eps_record.er_record;



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