From 5780fbc1cecc2fb7b144471866f26fe56a43fbb1 Mon Sep 17 00:00:00 2001 From: vasilito Date: Tue, 30 Jun 2026 22:23:00 +0300 Subject: [PATCH] cpufreqd: auto-detect virtualization for MSR read-only mode --- local/recipes/system/cpufreqd/source/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local/recipes/system/cpufreqd/source/src/main.rs b/local/recipes/system/cpufreqd/source/src/main.rs index 16730e17ba..c356983abf 100644 --- a/local/recipes/system/cpufreqd/source/src/main.rs +++ b/local/recipes/system/cpufreqd/source/src/main.rs @@ -389,7 +389,7 @@ fn main() { } let ps = read_acpi_pss(id); info!("CPU{}: {} P-states ({} - {} kHz)", id, ps.len(), ps.first().map_or(0, |p| p.freq_khz), ps.last().map_or(0, |p| p.freq_khz)); - CpuInfo { id, pstates: ps, current_idx: 0, load_history: [0.0; SAMPLE_WINDOW], load_idx: 0, throttle: false, msr_errors: 0, msr_suppressed: false, mode, hwp_min, hwp_max, hwp_guaranteed, hwp_efficient, dwell: 0, dwell_target: 0, read_only: false } + CpuInfo { id, pstates: ps, current_idx: 0, load_history: [0.0; SAMPLE_WINDOW], load_idx: 0, throttle: false, msr_errors: 0, msr_suppressed: false, mode, hwp_min, hwp_max, hwp_guaranteed, hwp_efficient, dwell: 0, dwell_target: 0, read_only: virtualized } }).collect(); let mut prev: Vec<(u64, u64)> = vec![(0, 0); cpus.len()]; let mut thermal = ThermalCache::new();