Skip to content

Commit

Permalink
Revert "feat: 低频时频率变化速度更快"
Browse files Browse the repository at this point in the history
This reverts commit 35e0a79.
  • Loading branch information
shadow3aaa committed Jan 3, 2025
1 parent 793c4db commit da06f00
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cpu_common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da06f00

Please sign in to comment.