summaryrefslogtreecommitdiff
path: root/src/or/scheduler.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-08-31 09:56:55 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-09-15 11:40:59 -0400
commit8424c4f35bd77f5b83113a74c424ca6d12393f1d (patch)
tree2cacb7f86d6e7ecd0968631606fcd2448c3ced8e /src/or/scheduler.c
parentdde358667d386d2c7b28866b029effa062ab9b6d (diff)
downloadtor-8424c4f35bd77f5b83113a74c424ca6d12393f1d.tar.gz
tor-8424c4f35bd77f5b83113a74c424ca6d12393f1d.zip
sched: Detect KIST support at compile time
Add a detection for the KIST scheduler in our build system and set HAVE_KIST_SUPPORT if available. Adapt the should use kist function with this new compile option. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/scheduler.c')
-rw-r--r--src/or/scheduler.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/or/scheduler.c b/src/or/scheduler.c
index b04bdceb40..f02b70793a 100644
--- a/src/or/scheduler.c
+++ b/src/or/scheduler.c
@@ -215,17 +215,6 @@ get_run_sched_ev(void)
return run_sched_ev;
}
-/* Return true iff the scheduler subsystem should use KIST. */
-int
-scheduler_should_use_kist(void)
-{
- int64_t run_freq = kist_scheduler_run_interval();
- log_info(LD_SCHED, "Determined sched_run_interval should be %" PRId64 ". "
- "Will%s use KIST.",
- run_freq, (run_freq > 0 ? "" : " not"));
- return run_freq > 0;
-}
-
/* Comparison function to use when sorting pending channels */
MOCK_IMPL(int,
scheduler_compare_channels, (const void *c1_v, const void *c2_v))