From b83dae2db2b97b2eeebaf29f714638522a405594 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 27 Nov 2016 12:37:35 -0800 Subject: [PATCH] TIMER: Make sure internal timer doesn't restart after a CONTINUE unless needed --- sim_timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sim_timer.c b/sim_timer.c index 4952c96d..edf055e8 100644 --- a/sim_timer.c +++ b/sim_timer.c @@ -1926,6 +1926,7 @@ if ((tmr == newtmr) && if (sim_calb_tmr == SIM_NTIMERS) { /* was old the internal timer? */ sim_debug (DBG_TRC, &sim_timer_dev, "_rtcn_configure_calibrated_clock() - Stopping Internal Calibrated Timer, New Timer = %d (%dHz)\n", tmr, rtc_hz[tmr]); rtc_initd[SIM_NTIMERS] = 0; + rtc_hz[SIM_NTIMERS] = 0; sim_cancel (&SIM_INTERNAL_UNIT); /* Migrate any coscheduled devices to the standard queue and they will requeue themselves */ while (sim_clock_cosched_queue[SIM_NTIMERS] != QUEUE_LIST_END) {