dont calibrate clock when timerfd enabled

This commit is contained in:
Anthony Minessale 2011-03-21 21:01:20 -05:00
parent cb9cb2b35e
commit 26f5ebd47d
1 changed files with 3 additions and 0 deletions

View File

@ -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")) {