1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 20:12:23 +00:00

Finish migration for simulators to use generic clock co-scheduling and sim_activate_after for scheduled delays

This commit is contained in:
Mark Pizzolato
2013-01-22 05:41:27 -08:00
parent 83c1d80194
commit 9fc6aa73d6
21 changed files with 35 additions and 46 deletions

View File

@@ -140,7 +140,7 @@ if ( DEV_IS_BUSY(INT_CLK) )
DEV_UPDATE_INTR ;
}
t = sim_rtc_calb (clk_tps[clk_sel]); /* calibrate delay */
sim_activate (&clk_unit, t); /* reactivate unit */
sim_activate_after (uptr, 1000000/clk_tps[clk_sel]); /* reactivate unit */
if (clk_adj[clk_sel] > 0) /* clk >= 60Hz? */
tmxr_poll = t * clk_adj[clk_sel]; /* poll is longer */
else