mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-03 12:30:08 +00:00
ppcexec: Simplify next event time calculation.
This commit is contained in:
parent
7e70432495
commit
78da2457e8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user