From 948d8cc6e899a0859ab0b65bfa5bb93858bc4a63 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 5 Oct 2018 20:44:22 -0700 Subject: [PATCH] TIMER: Remove excessive adjustment of sim_interval while idling --- sim_timer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sim_timer.c b/sim_timer.c index 46e2170c..500326d3 100644 --- a/sim_timer.c +++ b/sim_timer.c @@ -1585,7 +1585,6 @@ else act_ms = sim_idle_ms_sleep (w_ms); /* wait */ rtc_clock_time_idled[tmr] += act_ms; act_cyc = act_ms * sim_idle_cyc_ms; -act_cyc += (sim_idle_cyc_ms * sim_idle_rate_ms) / 2; /* account for half an interval's worth of cycles */ sim_interval = sim_interval - act_cyc; /* count down sim_interval to reflect idle period */ if (sim_clock_queue == QUEUE_LIST_END) sim_debug (DBG_IDL, &sim_timer_dev, "slept for %d ms - pending event in %d instructions\n", act_ms, sim_interval);