amd-smi_cli: Fix issue for set core boost limit in CPU

Change-Id: I1af4e9d14b1667c5279fcf02cebb4103a92e162c
This commit is contained in:
khashaik
2024-04-18 07:03:56 +00:00
committed by Maisam Arif
parent 614816ab7e
commit aad42d414a
+1 -2
View File
@@ -3621,7 +3621,6 @@ class AMDSMICommands():
if getattr(args, attr) is not None:
gpu_args_enabled = True
break
# Check if a CPU argument has been set
cpu_args_enabled = False
cpu_attributes = ["cpu_pwr_limit", "cpu_xgmi_link_width", "cpu_lclk_dpm_level", "cpu_pwr_eff_mode",
@@ -3629,7 +3628,7 @@ class AMDSMICommands():
"cpu_enable_apb", "cpu_disable_apb", "soc_boost_limit"]
for attr in cpu_attributes:
if hasattr(args, attr):
if getattr(args, attr) is not None:
if getattr(args, attr) not in [None, False]:
cpu_args_enabled = True
break