1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:27:35 +00:00

Kernel: Remove an unnecessary indirection between timer and scheduler

We don't need a wrapper Function object that just forwards the timer
callback to the scheduler tick function. It already has the same
signature, so we can just plug it in directly. :^)

Same with the clock updating function.
This commit is contained in:
Andreas Kling 2020-04-16 18:16:01 +02:00
parent 44d58b85ef
commit 1e89f7d64e
2 changed files with 4 additions and 18 deletions

View file

@ -57,9 +57,6 @@ public:
static void update_time(const RegisterState&);
void increment_time_since_boot(const RegisterState&);
static void update_scheduler_ticks(const RegisterState& regs);
void update_ticks(const RegisterState&);
static void stale_function(const RegisterState&);
static bool is_hpet_periodic_mode_allowed();
@ -76,8 +73,6 @@ private:
time_t m_epoch_time { 0 };
RefPtr<HardwareTimer> m_system_timer;
RefPtr<HardwareTimer> m_time_keeper_timer;
Function<void(RegisterState&)> m_scheduler_ticking { update_time };
Function<void(RegisterState&)> m_stale_method { stale_function };
};
}