增加getrusage,并把apic timer的频率调整为系统HZ (#435)

This commit is contained in:
LoGin
2023-11-12 16:36:17 +08:00
committed by GitHub
parent 02e249f30b
commit be8cdf4b8e
10 changed files with 119 additions and 63 deletions

View File

@ -40,7 +40,7 @@ pub static mut FINISHED_BOOTING: AtomicBool = AtomicBool::new(false);
/// Interval: 0.5sec Threshold: 0.0625s
/// 系统节拍率
pub const HZ: u64 = 1000;
pub const HZ: u64 = 250;
/// watchdog检查间隔
pub const WATCHDOG_INTERVAL: u64 = HZ >> 1;
/// 最大能接受的误差大小