mirror of
https://github.com/open-simh/simh.git
synced 2026-01-25 11:55:43 +00:00
TIMER: Fix recently revised sim_idle_capable for hosts which aren't idle capable.
This commit is contained in:
@@ -743,11 +743,13 @@ return (sim_idle_rate_ms != 0);
|
||||
|
||||
/* sim_timer_idle_capable - tell if the host is Idle capable and what the host OS tick size is */
|
||||
|
||||
uint32 sim_timer_idle_capable (uint32 *host_tick_ms)
|
||||
t_bool sim_timer_idle_capable (uint32 *host_ms_sleep_1, uint32 *host_tick_ms)
|
||||
{
|
||||
if (host_tick_ms)
|
||||
*host_tick_ms = sim_os_clock_resoluton_ms;
|
||||
return sim_idle_rate_ms;
|
||||
if (host_ms_sleep_1)
|
||||
*host_ms_sleep_1 = sim_os_sleep_min_ms;
|
||||
return (sim_idle_rate_ms != 0);
|
||||
}
|
||||
|
||||
/* sim_show_timers - show running timer information */
|
||||
|
||||
Reference in New Issue
Block a user