summaryrefslogtreecommitdiff
path: root/Meta/build-image-grub.sh
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-02-28 11:47:03 -0700
committerAndreas Kling <kling@serenityos.org>2021-03-01 11:11:09 +0100
commitcdbd878a145c97ffef9ba154071803fdc6c58ac3 (patch)
tree8b2ee260f5e0a2a84fc1af5ab271add3a58d03c3 /Meta/build-image-grub.sh
parentf66adbdd95bc587b9f7971af8b095e11cda0ce9e (diff)
downloadserenity-cdbd878a145c97ffef9ba154071803fdc6c58ac3.zip
Kernel: Fix APIC timer calibration to be more accurate
We were calibrating it to 260 instead of 250 ticks per second (being off by one for the 1/10th second calibration time), resulting in ticks of only ~3.6 ms instead of ~4ms. This gets us closer to ~4ms, but because the APIC isn't nearly as precise as e.g. HPET, it will only be a best effort. Then, use the higher precision reference timer to more accurately calculate how many ticks we actually get each second. Also the frequency calculation was off, causing a "Frequency too slow" error with VMware. Fixes some problems observed in #5539
Diffstat (limited to 'Meta/build-image-grub.sh')
0 files changed, 0 insertions, 0 deletions