mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 19:41:54 +00:00
7bed1b3caa
x86_pkg_temp receives thermal notifications via a callback from a therm_throt driver, where thermal interrupts are processed. This callback is pkg_temp_thermal_platform_thermal_notify. Here to avoid multiple interrupts from cores in a package, we disable the source and also set a variable to avoid scheduling delayed work function. This variable is protected via spin_lock_irqsave. On one buggy platform, we still receiving interrupts even if the source is disabled. This can cause deadlock/lockdep warning, when interrupt is generated while under spinlock in work function. Change spin_lock to spin_lock_irqsave and spin_unlock to spin_unlock_irqrestore as the data it is trying to protect can also be modified in a notification call called from interrupt handler. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> |
||
---|---|---|
.. | ||
samsung | ||
ti-soc-thermal | ||
armada_thermal.c | ||
cpu_cooling.c | ||
db8500_cpufreq_cooling.c | ||
db8500_thermal.c | ||
dove_thermal.c | ||
fair_share.c | ||
imx_thermal.c | ||
intel_powerclamp.c | ||
Kconfig | ||
kirkwood_thermal.c | ||
Makefile | ||
rcar_thermal.c | ||
spear_thermal.c | ||
step_wise.c | ||
thermal_core.c | ||
thermal_core.h | ||
thermal_hwmon.c | ||
thermal_hwmon.h | ||
user_space.c | ||
x86_pkg_temp_thermal.c |