]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
thermal: Initialize thermal subsystem earlier
authorAmit Kucheria <amit.kucheria@linaro.org>
Mon, 21 Oct 2019 12:15:11 +0000 (17:45 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 7 Nov 2019 06:00:26 +0000 (07:00 +0100)
Now that the thermal framework is built-in, in order to facilitate
thermal mitigation as early as possible in the boot cycle, move the
thermal framework initialization to core_initcall.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/f8ff0ab4a8e9c2eca5a26fb2256365b26cb326ce.1571656015.git.amit.kucheria@linaro.org
drivers/thermal/thermal_core.c

index cced0638b686f882278f8ab9b885fb605315da42..69fcd54f8a83e6e7471865805f0addd8a1a53481 100644 (file)
@@ -1537,4 +1537,4 @@ static int __init thermal_init(void)
        mutex_destroy(&poweroff_lock);
        return result;
 }
-fs_initcall(thermal_init);
+core_initcall(thermal_init);