summaryrefslogtreecommitdiffstats
path: root/bsps/x86_64/amd64/include/clock.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps/x86_64: Add APIC timer based clock driverAmaan Cheval2018-08-131-0/+99
The APIC timer is calibrated by running the i8254 PIT for a fraction of a second (determined by PIT_CALIBRATE_DIVIDER) and counting how many times the APIC counter has ticked. The calibration can be run multiple times (determined by APIC_TIMER_NUM_CALIBRATIONS) and averaged out. Updates #2898.