|
@@ -117,11 +117,17 @@ static void lpit_update_residency(struct lpit_residency_info *info,
|
|
|
if (!info->iomem_addr)
|
|
|
return;
|
|
|
|
|
|
+ if (!(acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0))
|
|
|
+ return;
|
|
|
+
|
|
|
/* Silently fail, if cpuidle attribute group is not present */
|
|
|
sysfs_add_file_to_group(&cpu_subsys.dev_root->kobj,
|
|
|
&dev_attr_low_power_idle_system_residency_us.attr,
|
|
|
"cpuidle");
|
|
|
} else if (info->gaddr.space_id == ACPI_ADR_SPACE_FIXED_HARDWARE) {
|
|
|
+ if (!(acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0))
|
|
|
+ return;
|
|
|
+
|
|
|
/* Silently fail, if cpuidle attribute group is not present */
|
|
|
sysfs_add_file_to_group(&cpu_subsys.dev_root->kobj,
|
|
|
&dev_attr_low_power_idle_cpu_residency_us.attr,
|