Kernel: Use HPET::initialized() to check if the HPET is available

Even if it is a synonym of `can_query_precise_time()` in practice, using
`HPET::initialized()` directly seems less fragile.
This commit is contained in:
Lucas Chollet authored and Sönke Holz committed 2026-07-22 14:54:40 +02:00
1 parent 483a0b2eb4
commit decd19d317
1 file changed
+1 -1
+1 -1
View File
@@ -45,7 +45,7 @@ UNMAP_AFTER_INIT KernelRng::KernelRng()
for (size_t i = 0; i < pool_count * reseed_threshold; ++i) {
add_random_event(Kernel::read_rdrand(), i % 32);
}
} else if (TimeManagement::the().can_query_precise_time()) {
} else if (HPET::initialized()) {
// Add HPET as entropy source if we don't have anything better.
dmesgln("KernelRng: Using HPET as entropy source");