aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Stone <ahs3@redhat.com>2013-11-09 17:07:57 -0700
committerGraeme Gregory <graeme.gregory@linaro.org>2013-11-19 10:30:34 +0000
commiteb21dcbbf3048cc434b966ab97f19513107d4d28 (patch)
tree9eb12cf8f78050a39a6890f19d3ed2f024227f8c
parenta26ff0c682c5d1069e82c5d629f64d6d88bf5f47 (diff)
downloadleg-kernel-eb21dcbbf3048cc434b966ab97f19513107d4d28.tar.gz
ACPI: in HW reduced mode, getting power latencies from FADT is not allowed
Make sure we are not in HW reduced mode when we rely on the the P_LVL2_LAT or P_LVL3_LAT (c2_latency, c3_latency) values from the FADT. Signed-off-by: Al Stone <al.stone@linaro.org> Acked-by: Graeme Gregory <graeme.gregory@linaro.org>
-rw-r--r--drivers/acpi/processor_idle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 0125f54c0613..55788c5bddf5 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -652,7 +652,7 @@ static int acpi_processor_get_power_info(struct acpi_processor *pr)
memset(pr->power.states, 0, sizeof(pr->power.states));
result = acpi_processor_get_power_info_cst(pr);
- if (result == -ENODEV)
+ if (!acpi_gbl_reduced_hardware && (result == -ENODEV))
result = acpi_processor_get_power_info_fadt(pr);
if (result)