From 26f5ebd47dbce9592bb43c293a502eafa1d03e57 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 21 Mar 2011 21:01:20 -0500 Subject: [PATCH] dont calibrate clock when timerfd enabled --- src/switch_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/switch_core.c b/src/switch_core.c index 73516cf168..03b3d1c8d0 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -1637,6 +1637,9 @@ static void switch_load_core_config(const char *file) switch_time_set_monotonic(switch_true(var)); } else if (!strcasecmp(var, "enable-softtimer-timerfd")) { switch_time_set_timerfd(switch_true(var)); + if (switch_true(val)) { + switch_clear_flag((&runtime), SCF_CALIBRATE_CLOCK); + } } else if (!strcasecmp(var, "enable-clock-nanosleep")) { switch_time_set_nanosleep(switch_true(var)); } else if (!strcasecmp(var, "enable-cond-yield")) {