ppcexec: Simplify next event time calculation.

This commit is contained in:
joevt 2024-05-24 04:26:16 -07:00 committed by dingusdev
parent 7e70432495
commit 78da2457e8

View File

@ -349,7 +349,7 @@ static uint64_t process_events()
// if there are no pending timers
return g_icycles + 10000;
}
return g_icycles + ((slice_ns + (1ULL << icnt_factor)) >> icnt_factor);
return g_icycles + (slice_ns >> icnt_factor) + 1;
}
static void force_cycle_counter_reload()