From da06f00dcc3cbd23a72e99cbb5236515ac2ec149 Mon Sep 17 00:00:00 2001 From: shadow3aaa Date: Fri, 3 Jan 2025 10:56:08 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"feat:=20=E4=BD=8E=E9=A2=91=E6=97=B6?= =?UTF-8?q?=E9=A2=91=E7=8E=87=E5=8F=98=E5=8C=96=E9=80=9F=E5=BA=A6=E6=9B=B4?= =?UTF-8?q?=E5=BF=AB"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 35e0a79301a6781a7c40a351b0f76909cb73470d. --- src/cpu_common/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cpu_common/mod.rs b/src/cpu_common/mod.rs index 0cd7adc6..82eb7e27 100644 --- a/src/cpu_common/mod.rs +++ b/src/cpu_common/mod.rs @@ -172,9 +172,6 @@ impl Controller { .unwrap_or_default(); let usage_tracking_sugg_freq = (cpu.cur_freq as f32 * cpu_usage / 100.0 / 0.5) as isize; // target_usage: 50% - let control_factor = - (1.0 - cpu.cur_freq as f64 / cpu.freqs.last().copied().unwrap() as f64) + 0.65; - let control = (control as f64 * control_factor) as isize; ( cpu.policy, cur_freq_max