ACPI / CPPC: Use h/w reduced version of the PCCT structure
authorAshwin Chaugule <ashwin.chaugule@linaro.org>
Fri, 13 Nov 2015 00:52:30 +0000 (19:52 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 Nov 2015 23:00:38 +0000 (00:00 +0100)
CPPC is enabled only on platforms which support the h/w reduced
ACPI specification, so use the h/w reduced version of the PCCT
consistently when deferencing PCCT contents.

Fixes: 337aadff8e45 (ACPI: Introduce CPU performance controls using CPPC)
Signed-off-by: Ashwin Chaugule <ashwin.chaugule@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/cppc_acpi.c

index 0bbf84bdcdc4f17bbbff4fabcf8dc286a9e519ca..9361966f1b61d88bd5d689e5ce055209f0ce7a0e 100644 (file)
@@ -304,7 +304,7 @@ EXPORT_SYMBOL_GPL(acpi_get_psd_map);
 
 static int register_pcc_channel(unsigned pcc_subspace_idx)
 {
-       struct acpi_pcct_subspace *cppc_ss;
+       struct acpi_pcct_hw_reduced *cppc_ss;
        unsigned int len;
 
        if (pcc_subspace_idx >= 0) {