Skip to content

Commit 7db4735

Browse files
sholeksandracoifmannvidia
authored andcommitted
hw-mgmt: script: Fix ThermalControl service disable logic
On systems that do not support thermal control, the thermal service should be disabled. By mistake, we had the logic for thermal control support detection inverted. This commit fixes the TC support check logic: Return 1 if TC is supported Return 0 otherwise Bug: 4567911 Signed-off-by: Oleksandr Shamray <[email protected]>
1 parent 46fada1 commit 7db4735

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

usr/usr/bin/hw-management-helpers.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,9 @@ check_simx()
335335
check_tc_is_supported()
336336
{
337337
if grep -q '"platform_support" : 0' $config_path/tc_config.json; then
338-
return 1
339-
else
340338
return 0
339+
else
340+
return 1
341341
fi
342342
}
343343

0 commit comments

Comments
 (0)