svn commit: r333906 - head/sys/sys

Matt Macy mmacy at FreeBSD.org
Sun May 20 01:00:57 UTC 2018


Author: mmacy
Date: Sun May 20 01:00:56 2018
New Revision: 333906
URL: https://svnweb.freebsd.org/changeset/base/333906

Log:
  epoch.h: move kernel only bits under _KERNEL

Modified:
  head/sys/sys/epoch.h

Modified: head/sys/sys/epoch.h
==============================================================================
--- head/sys/sys/epoch.h	Sun May 20 00:22:28 2018	(r333905)
+++ head/sys/sys/epoch.h	Sun May 20 01:00:56 2018	(r333906)
@@ -39,8 +39,6 @@ typedef struct epoch *epoch_t;
 
 extern epoch_t global_epoch;
 extern epoch_t global_epoch_preempt;
-DPCPU_DECLARE(int, epoch_cb_count);
-DPCPU_DECLARE(struct grouptask, epoch_cb_task);
 
 struct epoch_context {
 	void *data[2];
@@ -59,6 +57,10 @@ void epoch_wait_preempt(epoch_t epoch);
 void epoch_call(epoch_t epoch, epoch_context_t ctx, void (*callback) (epoch_context_t));
 int in_epoch(void);
 
+#ifdef _KERNEL
+DPCPU_DECLARE(int, epoch_cb_count);
+DPCPU_DECLARE(struct grouptask, epoch_cb_task);
+
 static __inline void
 epoch_enter_preempt(epoch_t epoch)
 {
@@ -83,5 +85,5 @@ epoch_exit_preempt(epoch_t epoch)
 	if (td->td_epochnest-- == 1)
 		epoch_exit_preempt_internal(epoch, td);
 }
-
+#endif /* _KERNEL */
 #endif


More information about the svn-src-head mailing list