| 321 | } |
| 322 | |
| 323 | uint64_t sched_tick(enum sched_item_id id) { |
| 324 | struct sched_item *item = &sched.items[id]; |
| 325 | assert(sched_active(id)); |
| 326 | /* Timestamp is always a multiple of the tick unit, so floor division is sufficient */ |
| 327 | return div_floor(item->timestamp, &sched.clocks[item->clock]); |
| 328 | } |
| 329 | |
| 330 | uint64_t sched_ticks_remaining(enum sched_item_id id) { |
| 331 | struct sched_item *item = &sched.items[id]; |
nothing calls this directly
no test coverage detected