File remove-mobile-platform-check.patch of Package intel-lpmd
Index: intel-lpmd-0.0.9/src/lpmd_cpu.c
===================================================================
--- intel-lpmd-0.0.9.orig/src/lpmd_cpu.c
+++ intel-lpmd-0.0.9/src/lpmd_cpu.c
@@ -930,17 +930,6 @@ static int detect_supported_cpu(lpmd_con
return -1;
}
- /* /sys/firmware/acpi/pm_profile is mandatory */
- if (lpmd_read_int(PATH_PM_PROFILE, &val, -1)) {
- lpmd_log_info("Failed to read PM profile %s\n", PATH_PM_PROFILE);
- return -1;
- }
-
- if (val != 2) {
- lpmd_log_info("Non-Mobile PM profile detected. %s returns %d\n", PATH_PM_PROFILE, val);
- return -1;
- }
-
/* Platform meets all the criteria for lpmd to run, check the allow list */
val = 0;
while (id_table[val].family) {