]> git.baikalelectronics.ru Git - kernel.git/commit
Thermal: do thermal zone update after a cooling device registered
authorChen Yu <yu.c.chen@intel.com>
Fri, 30 Oct 2015 08:32:10 +0000 (16:32 +0800)
committerZhang Rui <rui.zhang@intel.com>
Tue, 29 Dec 2015 08:00:00 +0000 (16:00 +0800)
commit7448e7dd811e45528ef7ce80740a3316721b8c5f
tree27511588f566ac27bbc92ce8bb4b676cbcf7d4a5
parent0c4aa15949ae052ca3e71b87fa58356758b80dde
Thermal: do thermal zone update after a cooling device registered

When a new cooling device is registered, we need to update the
thermal zone to set the new registered cooling device to a proper
state.

This fixes a problem that the system is cool, while the fan devices
are left running on full speed after boot, if fan device is registered
after thermal zone device.

Here is the history of why current patch looks like this:
https://patchwork.kernel.org/patch/7273041/

CC: <stable@vger.kernel.org> #3.18+
Reference:https://bugzilla.kernel.org/show_bug.cgi?id=92431
Tested-by: Manuel Krause <manuelkrause@netscape.net>
Tested-by: szegad <szegadlo@poczta.onet.pl>
Tested-by: prash <prash.n.rao@gmail.com>
Tested-by: amish <ammdispose-arch@yahoo.com>
Reviewed-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
drivers/thermal/thermal_core.c
include/linux/thermal.h