From a47c04bcac8d161a692c20944aebe3a09ede7d0b Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 6 Apr 2018 02:20:29 -0700 Subject: [PATCH] TIMER: Fix throttle startup delay check --- sim_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim_timer.c b/sim_timer.c index 1dcb9f84..ae8d77a5 100644 --- a/sim_timer.c +++ b/sim_timer.c @@ -1765,10 +1765,10 @@ switch (sim_throt_state) { case SIM_THROT_STATE_INIT: /* take initial reading */ if ((sim_calb_tmr != -1) && (rtc_hz[sim_calb_tmr] != 0)) { - if (rtc_calibrations[sim_calb_tmr] < sim_idle_stable) { + if (rtc_calibrations[sim_calb_tmr] < sim_throt_delay) { sim_throt_ms_start = sim_os_msec (); sim_throt_inst_start = sim_gtime (); - sim_debug (DBG_THR, &sim_timer_dev, "sim_throt_svc(INIT) Deferring until stable (%d more seconds)\n", (int)(sim_idle_stable - rtc_calibrations[sim_calb_tmr])); + sim_debug (DBG_THR, &sim_timer_dev, "sim_throt_svc(INIT) Deferring until stable (%d more seconds)\n", (int)(sim_throt_delay - rtc_calibrations[sim_calb_tmr])); return sim_activate (uptr, rtc_hz[sim_calb_tmr]*rtc_currd[sim_calb_tmr]); } sim_debug (DBG_THR, &sim_timer_dev, "sim_throt_svc(INIT) Computing Throttling values based on the last second's execution rate\n");