timemanager: Remove unnecessary parameter.

This commit is contained in:
joevt 2023-10-17 19:48:51 -07:00 committed by dingusdev
parent 014aa90462
commit 833f74dce6
3 changed files with 4 additions and 3 deletions

View File

@ -110,9 +110,10 @@ void TimerManager::cancel_timer(uint32_t id)
}
}
uint64_t TimerManager::process_timers(uint64_t time_now)
uint64_t TimerManager::process_timers()
{
TimerInfo* cur_timer;
uint64_t time_now = get_time_now();
if (this->timer_queue.empty()) {
return 0ULL;

View File

@ -106,7 +106,7 @@ public:
uint32_t add_cyclic_timer(uint64_t interval, uint64_t delay, timer_cb cb);
void cancel_timer(uint32_t id);
uint64_t process_timers(uint64_t time_now);
uint64_t process_timers();
private:
static TimerManager* timer_manager;

View File

@ -302,7 +302,7 @@ uint64_t get_virt_time_ns()
uint64_t process_events()
{
uint64_t slice_ns = TimerManager::get_instance()->process_timers(get_virt_time_ns());
uint64_t slice_ns = TimerManager::get_instance()->process_timers();
if (slice_ns == 0) {
// execute 10.000 cycles
// if there are no pending timers