1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

Kernel: Rename HardwareTimer::m_function_to_call => m_callback

This commit is contained in:
Andreas Kling 2020-04-16 18:18:43 +02:00
parent 1e89f7d64e
commit 4b1f056e3a
2 changed files with 10 additions and 5 deletions

View file

@ -40,7 +40,8 @@ enum class HardwareTimerType {
HighPrecisionEventTimer = 0x3 /* also known as IA-PC HPET */
};
class HardwareTimer : public RefCounted<HardwareTimer>
class HardwareTimer
: public RefCounted<HardwareTimer>
, public IRQHandler {
public:
virtual HardwareTimerType timer_type() const = 0;
@ -67,6 +68,7 @@ protected:
u64 m_frequency { OPTIMAL_TICKS_PER_SECOND_RATE };
private:
Function<void(const RegisterState&)> m_function_to_call;
Function<void(const RegisterState&)> m_callback;
};
}