Skip to content

Commit

Permalink
refactor: 不强制忽略policy0
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Nov 3, 2024
1 parent 039aba0 commit 5c19423
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/cpu_common/cpu_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,12 @@ impl Info {

let freq = freq.to_string();

if self.policy != 0
&& !IGNORE_MAP
.get()
.unwrap()
.get(&self.policy)
.unwrap()
.load(Ordering::Acquire)
if !IGNORE_MAP
.get()
.unwrap()
.get(&self.policy)
.unwrap()
.load(Ordering::Acquire)
{
file_handler.write_with_workround(max_freq_path, &freq)?;
file_handler.write_with_workround(min_freq_path, &freq)?;
Expand Down

0 comments on commit 5c19423

Please sign in to comment.