fix(kernel): remove redundant HPET counter test loop

This commit is contained in:
EnderIce2 2025-05-24 00:39:20 +00:00
parent 0187fa5b66
commit 43e7ddb9de
Signed by: enderice2
GPG Key ID: FEB6B8A8507BA62E

View File

@ -75,12 +75,6 @@ namespace Time
mmoutl(&this->hpet->Configuration, 1); mmoutl(&this->hpet->Configuration, 1);
#endif #endif
for (int i = 0; i < 5; i++)
{
uint64_t val = mminq(&this->hpet->MainCounter);
KPrint("HPET counter test %d: %llu", i, val);
}
uint64_t cfg = mminq(&this->hpet->Configuration); uint64_t cfg = mminq(&this->hpet->Configuration);
if (!(cfg & 1)) if (!(cfg & 1))
warn("HPET counter is not enabled!"); warn("HPET counter is not enabled!");