[GIT PULL] Thermal management fixes for v3.11-rc3

From: Zhang Rui
Date: Sun Jul 21 2013 - 22:25:49 EST


Hi, Linus,

Please pull from the git repository at

git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git next

to receive Thermal management fixes for v3.11-rc3 with
top-most commit ace120dcf23b3bbba00d797a898481997381052f:

Thermal: Fix lockup of cpu_down()

on top of commit 47188d39b5deeebf41f87a02af1b3935866364cf:

Merge tag 'ext4_for_linus' of
git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4

These are fixes collected over the last week, they fixes several
problems caused by the x86_pkg_temp_thermal introduced in 3.11-rc1.

Specifics:

- the x86_pkg_temp_thermal driver causes crash on systems with no
package MSR support as there is a bug in the logic to check presence
of DTHERM and PTS feature together. Added a change so that when there
is no PTS support, module doesn't get loaded.

- fix krealloc() misuse in pkg_temp_thermal_device_add().
If krealloc() returns NULL, it doesn't free the original. Thus if we
want to exit because of the krealloc() failure, we must make sure the
original one is freed.

- The error code path of the x86 package temperature thermal driver's
initialization routine makes an unbalanced call to get_online_cpus(),
which causes subsequent CPU offline operations, and consequently
system suspend, to permanently block in cpu_hotplug_begin() on systems
where get_core_online() returns an error code.
Remove the extra get_online_cpus() to fix the problem.

Thanks!

----------------------------------------------------------------
Srinivas Pandruvada (2):
Thermal: x86 package temp thermal crash
Thermal: x86_pkg_temp: Limit number of pkg temp zones

Steven Rostedt (1):
Thermal: Fix lockup of cpu_down()

Wei Yongjun (1):
Thermal: x86_pkg_temp: fix krealloc() misuse in in
pkg_temp_thermal_device_add()

drivers/thermal/x86_pkg_temp_thermal.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/