mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
Kernel: Use NonnullRefPtrVector for HardwareTimer and HPETComparator
This commit is contained in:
parent
03c91fce74
commit
c24304dca3
4 changed files with 12 additions and 24 deletions
|
@ -121,10 +121,10 @@ Vector<HardwareTimer*> TimeManagement::scan_and_initialize_periodic_timers()
|
|||
dbg() << "Time: Scanning for periodic timers";
|
||||
Vector<HardwareTimer*> timers;
|
||||
for (auto& hardware_timer : m_hardware_timers) {
|
||||
if (hardware_timer && hardware_timer->is_periodic_capable()) {
|
||||
timers.append(hardware_timer);
|
||||
if (hardware_timer.is_periodic_capable()) {
|
||||
timers.append(&hardware_timer);
|
||||
if (should_enable)
|
||||
hardware_timer->set_periodic();
|
||||
hardware_timer.set_periodic();
|
||||
}
|
||||
}
|
||||
return timers;
|
||||
|
@ -135,8 +135,8 @@ Vector<HardwareTimer*> TimeManagement::scan_for_non_periodic_timers()
|
|||
dbg() << "Time: Scanning for non-periodic timers";
|
||||
Vector<HardwareTimer*> timers;
|
||||
for (auto& hardware_timer : m_hardware_timers) {
|
||||
if (hardware_timer && !hardware_timer->is_periodic_capable())
|
||||
timers.append(hardware_timer);
|
||||
if (!hardware_timer.is_periodic_capable())
|
||||
timers.append(&hardware_timer);
|
||||
}
|
||||
return timers;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue