diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/common/block/acpi/pep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/acpi/pep.c b/src/soc/intel/common/block/acpi/pep.c index 5e0334530c..39f95425db 100644 --- a/src/soc/intel/common/block/acpi/pep.c +++ b/src/soc/intel/common/block/acpi/pep.c @@ -169,6 +169,8 @@ static void acpi_lpi_get_constraints(void *unused) if (size && states_arr) { for (dev = all_devices; dev; dev = dev->next) { + if (!dev->enabled || dev->hidden) + continue; if (get_min_sleep_state(dev, states_arr, size) != ACPI_DEVICE_SLEEP_NONE) num_entries++; @@ -182,6 +184,8 @@ static void acpi_lpi_get_constraints(void *unused) size_t cpu_index = 0; for (dev = all_devices; dev; dev = dev->next) { + if (!dev->enabled || dev->hidden) + continue; min_sleep_state = get_min_sleep_state(dev, states_arr, size); if (min_sleep_state == ACPI_DEVICE_SLEEP_NONE) continue; |