mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +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
|
@ -34,11 +34,11 @@ namespace Kernel {
|
|||
|
||||
NonnullRefPtr<HPETComparator> HPETComparator::create(u8 number, u8 irq, bool periodic_capable)
|
||||
{
|
||||
return adopt(*new HPETComparator(number, irq, periodic_capable, [](const RegisterState& regs) { TimeManagement::stale_function(regs); }));
|
||||
return adopt(*new HPETComparator(number, irq, periodic_capable));
|
||||
}
|
||||
|
||||
HPETComparator::HPETComparator(u8 number, u8 irq, bool periodic_capable, Function<void(const RegisterState&)> callback)
|
||||
: HardwareTimer(irq, move(callback))
|
||||
HPETComparator::HPETComparator(u8 number, u8 irq, bool periodic_capable)
|
||||
: HardwareTimer(irq)
|
||||
, m_periodic(false)
|
||||
, m_periodic_capable(periodic_capable)
|
||||
, m_comparator_number(number)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue