1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:37:45 +00:00

Kernel: Add RTC as fallback entropy source if HPET is not found

This commit is contained in:
Maciej Zygmanowski 2021-01-24 12:25:03 +01:00 committed by Andreas Kling
parent 0a61924727
commit 645657865d
2 changed files with 14 additions and 2 deletions

View file

@ -80,6 +80,8 @@ public:
timespec remaining_epoch_time_adjustment() const { return m_remaining_epoch_time_adjustment; }
void set_remaining_epoch_time_adjustment(const timespec& adjustment) { m_remaining_epoch_time_adjustment = adjustment; }
bool can_query_precise_time() const { return m_can_query_precise_time; }
private:
bool probe_and_set_legacy_hardware_timers();
bool probe_and_set_non_legacy_hardware_timers();