From bfae15fb834e770d36e27b5bb1780370bc2ae2e0 Mon Sep 17 00:00:00 2001 From: Junchao-Mellanox <57339448+Junchao-Mellanox@users.noreply.github.com> Date: Sun, 9 May 2021 01:33:37 +0800 Subject: [PATCH] [mellaonox]: No need enable thermal zones in thermal_manager.deinitialize since they are enabled by default (#7556) No need enable thermal zones in thermal_manager.deinitialize since they are enabled by default. And removing this will faster thermalctld exit speed --- .../mlnx-platform-api/sonic_platform/thermal_manager.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/thermal_manager.py b/platform/mellanox/mlnx-platform-api/sonic_platform/thermal_manager.py index 914eec7981..c2acf49a22 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/thermal_manager.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/thermal_manager.py @@ -16,15 +16,6 @@ class ThermalManager(ThermalManagerBase): """ cls._add_private_thermal_policy() - @classmethod - def deinitialize(cls): - """ - Destroy thermal manager, including any vendor specific cleanup. The default behavior of this function - is a no-op. - :return: - """ - cls.start_thermal_control_algorithm() - @classmethod def start_thermal_control_algorithm(cls): """