the HPET timers resolution is REALLY high. The time conversion was off by

1000. XenServer boots correctly and in reasonable time,
now (meaning hpet timers work). I guess on real hw the bios doesn't
correctly program the hpet timers, so we'll need a bit more work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33289 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2009-09-25 09:49:02 +00:00
parent 4966c05232
commit 8626c1aa5f
+1 -1
View File
@@ -59,7 +59,7 @@ hpet_set_hardware_timer(bigtime_t relativeTimeout)
//dprintf("getting value\n");
timerValue = relativeTimeout;
timerValue *= 1000000;
timerValue *= 1000000000;
timerValue /= sHPETRegs->period;
//dprintf("adding hpet counter value\n");
timerValue += sHPETRegs->counter;