kernel_optimize_test/drivers/thermal
Daniel Lezcano d2a89b5283 thermal: netlink: Improve the initcall ordering
The initcalls like to play joke. In our case, the thermal-netlink
initcall is called after the thermal-core initcall but this one sends
a notification before the former is initialized. No issue was spotted,
but it could lead to a memory corruption, so instead of relying on the
core_initcall for the thermal-netlink, let's initialize directly from
the thermal-core init routine, so we have full control of the init
ordering.

Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Link: https://lore.kernel.org/r/20200717164217.18819-1-daniel.lezcano@linaro.org
2020-07-21 10:40:08 +02:00
..
broadcom
intel thermal: Rename set_mode() to change_mode() 2020-06-29 20:26:39 +02:00
qcom
samsung
st thermal: Explicitly enable non-changing thermal zone devices 2020-06-29 20:26:37 +02:00
tegra
ti-soc-thermal
amlogic_thermal.c
armada_thermal.c thermal: Explicitly enable non-changing thermal zone devices 2020-06-29 20:26:37 +02:00
cpufreq_cooling.c
cpuidle_cooling.c
da9062-thermal.c thermal: Use mode helpers in drivers 2020-06-29 20:26:36 +02:00
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c thermal: Explicitly enable non-changing thermal zone devices 2020-06-29 20:26:37 +02:00
gov_bang_bang.c
gov_fair_share.c
gov_power_allocator.c
gov_step_wise.c
gov_user_space.c
hisi_thermal.c thermal: Use mode helpers in drivers 2020-06-29 20:26:36 +02:00
imx_sc_thermal.c - Add the hwmon support on the i.MX SC (Anson Huang) 2020-06-12 14:10:21 -07:00
imx_thermal.c thermal: imx: Use driver's local data to decide whether to run a measurement 2020-07-07 01:26:06 +02:00
imx8mm_thermal.c
k3_bandgap.c
Kconfig thermal/drivers/clock_cooling: Remove clock_cooling code 2020-07-21 10:40:08 +02:00
kirkwood_thermal.c thermal: Explicitly enable non-changing thermal zone devices 2020-06-29 20:26:37 +02:00
Makefile thermal/drivers/clock_cooling: Remove clock_cooling code 2020-07-21 10:40:08 +02:00
max77620_thermal.c
mtk_thermal.c
qoriq_thermal.c
rcar_gen3_thermal.c thermal: rcar_gen3_thermal: Add r8a774e1 support 2020-07-21 10:40:08 +02:00
rcar_thermal.c thermal: Explicitly enable non-changing thermal zone devices 2020-06-29 20:26:37 +02:00
rockchip_thermal.c thermal: Use mode helpers in drivers 2020-06-29 20:26:36 +02:00
spear_thermal.c thermal: Explicitly enable non-changing thermal zone devices 2020-06-29 20:26:37 +02:00
sprd_thermal.c thermal: Use mode helpers in drivers 2020-06-29 20:26:36 +02:00
sun8i_thermal.c
tango_thermal.c
thermal_core.c thermal: netlink: Improve the initcall ordering 2020-07-21 10:40:08 +02:00
thermal_core.h thermal: netlink: Fix compilation error when CONFIG_NET=n 2020-07-21 10:39:17 +02:00
thermal_helpers.c thermal: core: Add notifications call in the framework 2020-07-07 15:55:22 +02:00
thermal_hwmon.c
thermal_hwmon.h
thermal_mmio.c
thermal_netlink.c thermal: netlink: Improve the initcall ordering 2020-07-21 10:40:08 +02:00
thermal_netlink.h thermal: netlink: Improve the initcall ordering 2020-07-21 10:40:08 +02:00
thermal_of.c thermal: Simplify or eliminate unnecessary set_mode() methods 2020-06-29 20:26:39 +02:00
thermal_sysfs.c thermal: core: Add notifications call in the framework 2020-07-07 15:55:22 +02:00
thermal-generic-adc.c
uniphier_thermal.c
zx2967_thermal.c