1 /* 2 * Copyright 2021-2022 Haiku, Inc. All rights reserved. 3 * Released under the terms of the MIT License. 4 * 5 * Copyright 2008, Dustin Howett, dustin.howett@gmail.com. All rights reserved. 6 * Distributed under the terms of the MIT License. 7 * 8 * Copyright 2001, Travis Geiselbrecht. All rights reserved. 9 * Distributed under the terms of the NewOS License. 10 */ 11 12 13 #include "arch_timer.h" 14 15 #include <boot/arch/x86/arch_cpu.h> 16 #include <boot/arch/x86/arch_hpet.h> 17 18 19 void 20 arch_timer_init(void) 21 { 22 // use PIT channel 2 for the calibration loop 23 // as channel 0 is reserved for the UEFI firmware 24 calculate_cpu_conversion_factor(2); 25 26 hpet_init(); 27 } 28