aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/epoch.h
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-05-17 21:39:15 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-05-17 21:39:15 +0000
commita5f1042498465d17e28b80697c2b676e444b7da0 (patch)
treefc9b9f2d30194ebc9cd71d94edfb5e1abb48a00f /sys/sys/epoch.h
parent04b1905584042104536027ec177ab7367c2bbe64 (diff)
downloadsrc-a5f1042498465d17e28b80697c2b676e444b7da0.tar.gz
src-a5f1042498465d17e28b80697c2b676e444b7da0.zip
epoch: skip poll function call in hardclock unless there are callbacks pending
Reported by: mjg Approved by: sbruno
Notes
Notes: svn path=/head/; revision=333769
Diffstat (limited to 'sys/sys/epoch.h')
-rw-r--r--sys/sys/epoch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/epoch.h b/sys/sys/epoch.h
index b2999c141777..a60edbab09b8 100644
--- a/sys/sys/epoch.h
+++ b/sys/sys/epoch.h
@@ -36,6 +36,8 @@ struct epoch;
typedef struct epoch *epoch_t;
extern epoch_t global_epoch;
+DPCPU_DECLARE(int, epoch_cb_count);
+DPCPU_DECLARE(struct grouptask, epoch_cb_task);
struct epoch_context {
void *data[2];
@@ -49,7 +51,6 @@ void epoch_enter_internal(epoch_t epoch, struct thread *td);
void epoch_exit_internal(epoch_t epoch, struct thread *td);
void epoch_wait(epoch_t epoch);
void epoch_call(epoch_t epoch, epoch_context_t ctx, void (*callback) (epoch_context_t));
-void epoch_pcpu_poll(void);
int in_epoch(void);
static __inline void