Skip to content

Commit

Permalink
Only applies the spam error message fix for intel_pstate drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
FosRexx committed Apr 20, 2024
1 parent 7be043a commit 828db0e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions auto_cpufreq/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,8 +942,12 @@ def set_performance():
run(f"cpufreqctl.auto-cpufreq --epp --set={epp}", shell=True)
print(f'Setting to use: "{epp}" EPP')
else:
run("cpufreqctl.auto-cpufreq --epp --set=performance", shell=True)
print('Setting to use: "performance" EPP')
if Path("/sys/devices/system/cpu/intel_pstate/status").exists() is True:
run("cpufreqctl.auto-cpufreq --epp --set=performance", shell=True)
print('Setting to use: "performance" EPP')
else:
run("cpufreqctl.auto-cpufreq --epp --set=balance_performance", shell=True)
print('Setting to use: "balance_performance" EPP')

# set frequencies
set_frequencies()
Expand Down

0 comments on commit 828db0e

Please sign in to comment.