Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/thd_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ int cthd_engine::check_acpi_platform_profile() {
pm_profile_fs.read("", pm_profile);
thd_log_info("PM profile is %s\n", pm_profile.c_str());
if (pm_profile != "2" && pm_profile != "8") {
thd_log_error("Non mobile platform, exiting..\n");
return THD_FATAL_ERROR;
thd_log_warn("Non mobile platform, thermal tables may not have been validated.\n");
return THD_ERROR;
}
Comment on lines 262 to 266

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am thinking to turn this function to void

} else {
thd_log_info("PM profile is not available, skipping check\n");
Expand Down Expand Up @@ -297,9 +297,7 @@ int cthd_engine::thd_engine_init(bool ignore_cpuid_check, bool adaptive) {
thd_log_debug("Ignore CPU ID check for MSRs\n");
proc_list_matched = true;
} else {
if (check_acpi_platform_profile() != THD_SUCCESS) {
return THD_FATAL_ERROR;
}
check_acpi_platform_profile();

check_cpu_id();

Expand Down
4 changes: 1 addition & 3 deletions src/thd_engine_adaptive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -660,9 +660,7 @@ int cthd_engine_adaptive::thd_engine_init(bool ignore_cpuid_check,
size_t size;
int res;

if (check_acpi_platform_profile() != THD_SUCCESS) {
return THD_FATAL_ERROR;
}
check_acpi_platform_profile();

thd_parse_features();

Expand Down
Loading