Skip to content

Commit 78da245

Browse files
joevtdingusdev
authored andcommitted
ppcexec: Simplify next event time calculation.
1 parent 7e70432 commit 78da245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpu/ppc/ppcexec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ static uint64_t process_events()
349349
// if there are no pending timers
350350
return g_icycles + 10000;
351351
}
352-
return g_icycles + ((slice_ns + (1ULL << icnt_factor)) >> icnt_factor);
352+
return g_icycles + (slice_ns >> icnt_factor) + 1;
353353
}
354354

355355
static void force_cycle_counter_reload()

0 commit comments

Comments
 (0)