]> Pileus Git - ~andy/linux/commit
Thermal: Allow first update of cooling device state
authorNi Wade <wni@nvidia.com>
Mon, 17 Feb 2014 03:02:55 +0000 (11:02 +0800)
committerZhang Rui <rui.zhang@intel.com>
Mon, 3 Mar 2014 15:15:29 +0000 (23:15 +0800)
commit5ca0cce5622bf476e3e6bf627fe8e9381d6ae174
tree3f8e52c50a333eb6c87e7896f29fd0d0e896150a
parentd1c8b0410b77f1e43f97cd22bc7e0a71a5305840
Thermal: Allow first update of cooling device state

In initialization, if the cooling device is initialized at
max cooling state, and the thermal zone temperature is below
the first trip point, then the cooling state can't be updated
to the right state, untill the first trip point be triggered.

To fix this issue, allow first update of cooling device state
during registration, initialized "updated" device field as
"false" (instead of "true").

Signed-off-by: Wei Ni <wni@nvidia.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_core.c