mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +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:
@@ -37,7 +37,8 @@ HardwareTimer::HardwareTimer(u8 irq_number, Function<void(const RegisterState&)>
|
||||
|
||||
void HardwareTimer::handle_irq(const RegisterState& regs)
|
||||
{
|
||||
m_callback(regs);
|
||||
if (!m_callback)
|
||||
m_callback(regs);
|
||||
}
|
||||
|
||||
const char* HardwareTimer::purpose() const
|
||||
|
||||
Reference in New Issue
Block a user