original_kernel/drivers/thermal
Steven Rostedt ace120dcf2 Thermal: Fix lockup of cpu_down()
Commit f1a18a105 "Thermal: CPU Package temperature thermal" had code
that did a get_online_cpus(), run a loop and then do a
put_online_cpus(). The problem is that the loop had an error exit that
would skip the put_online_cpus() part.

In the error exit part of the function, it also did a get_online_cpus(),
run a loop and then put_online_cpus(). The only way to get to the error
exit part is with get_online_cpus() already performed. If this error
condition is hit, the system will be prevented from taking CPUs offline.
The process taking the CPU offline will lock up hard.

Removing the get_online_cpus() removes the lockup as the hotplug CPU
refcount is back to zero.

This was bisected with ktest.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2013-07-22 09:34:46 +08:00
..
ti-soc-thermal thermal: ti-soc-thermal: use standard GPIO DT bindings 2013-07-08 10:11:59 -04:00
Kconfig Merge branch 'cpu-package-thermal' of .git into next 2013-06-18 07:26:49 +08:00
Makefile
armada_thermal.c
cpu_cooling.c
db8500_cpufreq_cooling.c
db8500_thermal.c
dove_thermal.c
exynos_thermal.c Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux 2013-07-11 12:26:08 -07:00
fair_share.c
intel_powerclamp.c
kirkwood_thermal.c
rcar_thermal.c
spear_thermal.c
step_wise.c
thermal_core.c
thermal_core.h
user_space.c
x86_pkg_temp_thermal.c Thermal: Fix lockup of cpu_down() 2013-07-22 09:34:46 +08:00