Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 May 2018 01:00:56 +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: r333906 - head/sys/sys
Message-ID:  <201805200100.w4K10uJh063130@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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