File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -928,7 +928,7 @@ def set_performance():
928
928
if conf .has_option ("charger" , "energy_performance_preference" ):
929
929
epp = conf ["charger" ]["energy_performance_preference" ]
930
930
931
- if Path (intel_pstate_status_path ).exists () and open (intel_pstate_status_path , 'r' ).read ().strip () == "active" and epp != "performance" :
931
+ if Path (intel_pstate_status_path ).exists () and open (intel_pstate_status_path , 'r' ).read ().strip () == "active" and epp != "performance" and gov == "performance" :
932
932
print (f'Warning "{ epp } " EPP cannot be used in performance governor' )
933
933
print ('Overriding EPP to "performance"' )
934
934
epp = "performance"
@@ -948,7 +948,7 @@ def set_performance():
948
948
if conf .has_option ("charger" , "energy_performance_preference" ):
949
949
epp = conf ["charger" ]["energy_performance_preference" ]
950
950
951
- if Path (amd_pstate_status_path ).exists () and open (amd_pstate_status_path , 'r' ).read ().strip () == "active" and epp != "performance" :
951
+ if Path (amd_pstate_status_path ).exists () and open (amd_pstate_status_path , 'r' ).read ().strip () == "active" and epp != "performance" and gov == "performance" :
952
952
print (f'Warning "{ epp } EPP cannot be used in performance governor' )
953
953
print ('Overriding EPP to "performance"' )
954
954
epp = "performance"
You can’t perform that action at this time.
0 commit comments