1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:48:14 +00:00

Kernel: Rename HardwareTimer::change_function() => set_callback()

Also make it non-virtual since nothing needs to override it.
This commit is contained in:
Andreas Kling 2020-04-16 18:51:39 +02:00
parent b035267afa
commit c891c87cb5
3 changed files with 5 additions and 4 deletions

View file

@ -190,10 +190,10 @@ bool TimeManagement::probe_and_set_non_legacy_hardware_timers()
}
}
m_system_timer->change_function(Scheduler::timer_tick);
m_system_timer->set_callback(Scheduler::timer_tick);
dbg() << "Reset timers";
m_system_timer->try_to_set_frequency(m_system_timer->calculate_nearest_possible_frequency(1024));
m_time_keeper_timer->change_function(TimeManagement::update_time);
m_time_keeper_timer->set_callback(TimeManagement::update_time);
m_time_keeper_timer->try_to_set_frequency(OPTIMAL_TICKS_PER_SECOND_RATE);
return true;