fix(driver/tsc): 修复 pmtimer 拼写错误 (#1762)

Signed-off-by: mingjiangyu1 <mingjiangyu1@qq.com>
This commit is contained in:
Yuming Jiang 2026-02-03 11:31:08 +08:00 committed by GitHub
parent 269251c190
commit dade7343ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ impl TSCManager {
todo!("detect TSC and CPU frequency by cpuid or msr or pit");
} else {
// 使用pit来测量TSC和CPU总线的频率
Self::set_cpu_khz(Self::calibrate_cpu_by_pit_hpet_ptimer()?);
Self::set_cpu_khz(Self::calibrate_cpu_by_pit_hpet_pmtimer()?);
}
// 认为非0的TSC频率是可靠的并且使用它来检查CPU总线的频率
@ -103,8 +103,8 @@ impl TSCManager {
/// 测量CPU总线的频率
///
/// 使用pit、hpet、ptimer来测量CPU总线的频率
fn calibrate_cpu_by_pit_hpet_ptimer() -> Result<u64, SystemError> {
/// 使用pit、hpet、pmtimer来测量CPU总线的频率
fn calibrate_cpu_by_pit_hpet_pmtimer() -> Result<u64, SystemError> {
let hpet = is_hpet_enabled();
log_for_hpet(hpet);