diff options
author | Matt Traudt <sirmatt@ksu.edu> | 2017-09-21 13:15:51 -0400 |
---|---|---|
committer | Matt Traudt <sirmatt@ksu.edu> | 2017-09-22 08:51:22 -0400 |
commit | 22699e3f166f4c20ea0727cef9b20b936bb3ac7c (patch) | |
tree | 37e63e62966c2585f99dc93b0abdcf795f64af0a /src/or/scheduler_kist.c | |
parent | 00d7b60557883ac0c3ad4c27071d4efe1f7a3ffb (diff) | |
download | tor-22699e3f166f4c20ea0727cef9b20b936bb3ac7c.tar.gz tor-22699e3f166f4c20ea0727cef9b20b936bb3ac7c.zip |
sched: only log when scheduler type changes
Closes 23552. Thanks dgoulet for original impl
Diffstat (limited to 'src/or/scheduler_kist.c')
-rw-r--r-- | src/or/scheduler_kist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/scheduler_kist.c b/src/or/scheduler_kist.c index 8b0c81c4cf..5ba31bb87b 100644 --- a/src/or/scheduler_kist.c +++ b/src/or/scheduler_kist.c @@ -687,6 +687,7 @@ kist_scheduler_run(void) /* Stores the kist scheduler function pointers. */ static scheduler_t kist_scheduler = { + .type = SCHEDULER_KIST, .free_all = kist_free_all, .on_channel_free = kist_on_channel_free, .init = kist_scheduler_init, @@ -738,6 +739,7 @@ void scheduler_kist_set_lite_mode(void) { kist_lite_mode = 1; + kist_scheduler.type = SCHEDULER_KIST_LITE; log_info(LD_SCHED, "Setting KIST scheduler without kernel support (KISTLite mode)"); } @@ -747,6 +749,7 @@ void scheduler_kist_set_full_mode(void) { kist_lite_mode = 0; + kist_scheduler.type = SCHEDULER_KIST; log_info(LD_SCHED, "Setting KIST scheduler with kernel support (KIST mode)"); } |