diff options
author | Liav A <liavalb@gmail.com> | 2021-03-06 10:48:56 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-06 15:58:24 +0100 |
commit | bbe1d7e2397781c353fa33f71d3b320207606a52 (patch) | |
tree | 99b62c98b4b4454042c5ba931985afe409081df9 /Kernel/Time/HPET.h | |
parent | 4ae3bfa40d1f3facbda7ef6dcc6132ff3c2766fd (diff) | |
download | serenity-bbe1d7e2397781c353fa33f71d3b320207606a52.zip |
Revert "Kernel: Fix HPET timer structure layout"
This reverts commit af2220448834fb0bff5132bf68104719819862ce.
According to the HPET specification, each theoretical comparator takes
32 bytes in the MMIO space.
Although I hardly believe that any system will implement all 32
comparators, in practice if a machine happens to have more than 3
comparators, we need to address the comparators correctly if we want to
use them.
Diffstat (limited to 'Kernel/Time/HPET.h')
-rw-r--r-- | Kernel/Time/HPET.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Time/HPET.h b/Kernel/Time/HPET.h index a2d04dd774..8047c4d99e 100644 --- a/Kernel/Time/HPET.h +++ b/Kernel/Time/HPET.h @@ -75,7 +75,7 @@ private: void global_disable(); void global_enable(); - bool is_periodic_capable(u8 comparator_number); + bool is_periodic_capable(u8 comparator_number) const; void set_comparators_to_optimal_interrupt_state(size_t timers_count); u64 nanoseconds_to_raw_ticks() const; |