drivers/rtc/rtc-imxdi.c: trivial clean up code
[firefly-linux-kernel-4.4.55.git] / drivers / acpi / processor_thermal.c
index d1d2e7fb5b30778f26d46ce6e72eecb03350ddfc..e003663b2f8e5346d8862f336e604c8c6bf35035 100644 (file)
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/cpufreq.h>
-
-#include <asm/uaccess.h>
-
-#include <acpi/acpi_bus.h>
+#include <linux/acpi.h>
 #include <acpi/processor.h>
-#include <acpi/acpi_drivers.h>
+#include <asm/uaccess.h>
 
 #define PREFIX "ACPI: "
 
@@ -186,14 +183,14 @@ static int cpufreq_set_cur_state(unsigned int cpu, int state)
 
 #endif
 
-/* thermal coolign device callbacks */
+/* thermal cooling device callbacks */
 static int acpi_processor_max_state(struct acpi_processor *pr)
 {
        int max_state = 0;
 
        /*
         * There exists four states according to
-        * cpufreq_thermal_reduction_ptg. 0, 1, 2, 3
+        * cpufreq_thermal_reduction_pctg. 0, 1, 2, 3
         */
        max_state += cpufreq_get_max_state(pr->id);
        if (pr->flags.throttling)