cpufreqd: auto-detect virtualization for MSR read-only mode
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user