mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +00:00
Kernel: Remove "stale callback" concept from time management
If a hardware timer doesn't have a callback registered, it's now simply represented by a null m_callback.
This commit is contained in:
parent
4b1f056e3a
commit
b035267afa
6 changed files with 7 additions and 11 deletions
|
@ -62,7 +62,7 @@ public:
|
|||
virtual size_t calculate_nearest_possible_frequency(size_t frequency) const = 0;
|
||||
|
||||
protected:
|
||||
HardwareTimer(u8 irq_number, Function<void(const RegisterState&)>);
|
||||
HardwareTimer(u8 irq_number, Function<void(const RegisterState&)> = nullptr);
|
||||
//^IRQHandler
|
||||
virtual void handle_irq(const RegisterState&) override;
|
||||
u64 m_frequency { OPTIMAL_TICKS_PER_SECOND_RATE };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue