mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-05 10:30:28 +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
|
// if there are no pending timers
|
||||||
return g_icycles + 10000;
|
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()
|
static void force_cycle_counter_reload()
|
||||||
|
Loading…
Reference in New Issue
Block a user