-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable thermal-daemon for unsupported devices
This change will disable thermal-daemon service for all unsupported platforms Tracked-On: OAM-129813 Signed-off-by: Manvi Bajaj <manvi.bajaj@intel.com>
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
.../caas/external/thermal_daemon/0003-Disable-thermal-daemon-for-not-supported-devices.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From fe167c7d55002d01abdb425446f3be7842150ded Mon Sep 17 00:00:00 2001 | ||
From: Manvi Bajaj <manvi.bajaj@intel.com> | ||
Date: Tue, 4 Feb 2025 06:30:33 +0000 | ||
Subject: [PATCH] Disable thermal-daemon for not-supported devices | ||
|
||
This change will disable thermal-daemon service for all | ||
unsupported devices. | ||
|
||
Signed-off-by: Manvi Bajaj <manvi.bajaj@intel.com> | ||
--- | ||
src/thd_engine_default.cpp | 4 +++- | ||
1 file changed, 3 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/src/thd_engine_default.cpp b/src/thd_engine_default.cpp | ||
index 5040462..458e094 100644 | ||
--- a/src/thd_engine_default.cpp | ||
+++ b/src/thd_engine_default.cpp | ||
@@ -747,9 +747,11 @@ int thd_engine_create_default_engine(bool ignore_cpuid_check, | ||
thd_engine->set_config_file(conf_file); | ||
|
||
if (thd_engine->thd_engine_start(ignore_cpuid_check) != THD_SUCCESS) { | ||
- thd_log_error("THD engine start failed\n"); | ||
+ property_set("persist.vendor.thermal.daemon.supported", "0"); | ||
+ thd_log_error("Thermal Daemon not supported\n"); | ||
return THD_ERROR; | ||
} | ||
|
||
+ property_set("persist.vendor.thermal.daemon.supported", "1"); | ||
return THD_SUCCESS; | ||
} | ||
-- | ||
2.34.1 | ||
|