Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Nov 8, 2024
1 parent 9b4b818 commit e8f0d54
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/threaded/scheduler_static.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,7 @@ void execute_inst_DU(lf_scheduler_t* scheduler, size_t worker_number, operand_t
int pc_orig = (int) *pc;
tracepoint_static_scheduler_DU_starts(worker_number, pc_orig);
#endif
// FIXME: There seems to be an overflow problem.
// When wakeup_time overflows but lf_time_physical() doesn't,
// _lf_interruptable_sleep_until_locked() terminates immediately.
reg_t *src = op1.reg;
instant_t current_time = lf_time_physical();
instant_t wakeup_time = *src + op2.imm;
LF_PRINT_DEBUG("DU wakeup time: %lld, base: %lld, offset: %lld", wakeup_time, *src, op2.imm);
// Check if we need to sleep.
Expand Down

0 comments on commit e8f0d54

Please sign in to comment.