[GIT PULL] Thermal management updates for v4.13-rc1

From: Zhang Rui
Date: Fri Jul 14 2017 - 09:59:07 EST

Hi, Linus,

Please pull from
 git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git next

to receive the latest Thermal Management updates for v4.13-rc1 with
top-most commit 5d72ed35678a351a1aed4b454c25d583f8bccb28:

 Merge branches 'thermal-core', 'thermal-intel' and 'thermal-soc' into
next (2017-07-05 15:01:06 +0800)

on top of commit c0bc126f97fb929b3ae02c1c62322645d70eb408:

 Linux 4.12-rc7Â(2017-06-25Â18:30:05Â-0700)


- Improve thermal cpu_cooling interaction with cpufreq core. The
cpu_cooling driver is designed to use CPU frequency scaling to avoid
high thermal states for a platform. But it wasn't glued really well
with cpufreq core. For example clipped-cpus is copied from the policy
structure and its much better to use the policy->cpus (or related_cpus)
fields directly as they may have got updated. Not that things were
broken before this series, but they can be optimized a bit more. This
series tries to improve interactions between cpufreq core and
cpu_cooling driver and does some fixes/cleanups to the cpu_cooling
driver. (Viresh Kumar)

- A couple of fixes and cleanups in thermal core and imx, hisilicon,
bcm_2835, int340x thermal drivers. (Arvind Yadav, Dan Carpenter, Sumeet
Pawnikar, Srinivas Pandruvada, Willy WOLFF)


Arvind Yadav (2):
ÂÂÂÂÂÂthermal: imx: Handle return value of clk_prepare_enable
ÂÂÂÂÂÂthermal: hisilicon: Handle return value of clk_prepare_enable

Dan Carpenter (1):
ÂÂÂÂÂÂthermal: bcm2835: fix an error code in probe()

Srinivas Pandruvada (1):
ÂÂÂÂÂÂthermal: int340x: check for sensor when PTYP is missing

Sumeet Pawnikar (1):
ÂÂÂÂÂÂThermal/int340x: Fix few typos and kernel-doc style

Viresh Kumar (18):
ÂÂÂÂÂÂthermal: cpu_cooling: Avoid accessing potentially freed
ÂÂÂÂÂÂthermal: cpu_cooling: rearrange globals
ÂÂÂÂÂÂthermal: cpu_cooling: Name cpufreq cooling devices as
ÂÂÂÂÂÂthermal: cpu_cooling: replace cool_dev with cdev
ÂÂÂÂÂÂthermal: cpu_cooling: remove cpufreq_cooling_get_level()
ÂÂÂÂÂÂthermal: cpu_cooling: get rid of a variable in
ÂÂÂÂÂÂthermal: cpu_cooling: use cpufreq_policy to register cooling
ÂÂÂÂÂÂcpufreq: create cpufreq_table_count_valid_entries()
ÂÂÂÂÂÂthermal: cpu_cooling: store cpufreq policy
ÂÂÂÂÂÂthermal: cpu_cooling: OPPs are registered for all CPUs
ÂÂÂÂÂÂthermal: cpu_cooling: get rid of 'allowed_cpus'
ÂÂÂÂÂÂthermal: cpu_cooling: merge frequency and power tables
ÂÂÂÂÂÂthermal: cpu_cooling: create structure for idle time stats
ÂÂÂÂÂÂthermal: cpu_cooling: get_level() can't fail
ÂÂÂÂÂÂthermal: cpu_cooling: don't store cpu_dev in cpufreq_cdev
ÂÂÂÂÂÂthermal: cpu_cooling: 'freq' can't be zero in
ÂÂÂÂÂÂthermal: cpu_cooling: Rearrange struct cpufreq_cooling_device
ÂÂÂÂÂÂthermal: cpu_cooling: Replace kmalloc with kmalloc_array

Willy WOLFF (1):
ÂÂÂÂÂÂthermal: fix source code documentation for parameters

Zhang Rui (2):
ÂÂÂÂÂÂMerge branch 'linus' of git://git.kernel.org/.../evalenti/linux-
soc-thermal into thermal-soc
ÂÂÂÂÂÂMerge branches 'thermal-core', 'thermal-intel' and 'thermal-soc'
into next

Âdrivers/cpufreq/arm_big_little.cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂ2 +-
Âdrivers/cpufreq/cpufreq-dt.cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂ2 +-
Âdrivers/cpufreq/cpufreq_stats.cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂ13 +-
Âdrivers/cpufreq/dbx500-cpufreq.cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂ2 +-
Âdrivers/cpufreq/mt8173-cpufreq.cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂ4 +-
Âdrivers/cpufreq/qoriq-cpufreq.cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂ3 +-
Âdrivers/thermal/broadcom/bcm2835_thermal.cÂÂÂÂÂÂÂÂÂ|ÂÂÂ1 -
Âdrivers/thermal/cpu_cooling.cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ| 609 +++++++++--
Âdrivers/thermal/fair_share.cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂ1 +
Âdrivers/thermal/hisi_thermal.cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂ5 +-
Âdrivers/thermal/imx_thermal.cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂ27 +-
Âdrivers/thermal/int340x_thermal/acpi_thermal_rel.c |ÂÂÂ6 +-
Âdrivers/thermal/int340x_thermal/int3403_thermal.cÂÂ|ÂÂ12 +-
Âdrivers/thermal/step_wise.cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂ3 +-
Âdrivers/thermal/ti-soc-thermal/ti-thermal-common.c |ÂÂ22 +-
Âdrivers/thermal/user_space.cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂ3 +-
Âinclude/linux/cpu_cooling.hÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂ32 +-
Â18 files changed, 342 insertions(+), 419 deletions(-)