thermal: Only set passive_delay for forced_passive cooling
authorFrans Pop <elendil@planet.nl>
Mon, 26 Oct 2009 07:39:03 +0000 (08:39 +0100)
committerLen Brown <len.brown@intel.com>
Thu, 5 Nov 2009 23:18:36 +0000 (18:18 -0500)
commite4143b0324a6a468cb00c4341cd20d60cc441252
treea8c0c60fd77d7a2626aa28bd7e6191933d0b542d
parent3d8e3ad879441ae14c5957b933028daf39d252b0
thermal: Only set passive_delay for forced_passive cooling

Setting polling_delay is useless as passive_delay has priority,
so the value shown in proc isn't the actual polling delay. It
also gives the impression to the user that he can change the
polling interval through proc, while in fact he can't.

Also, unset passive_delay when the forced passive trip point is
unbound to allow polling to be disabled.

Signed-off-by: Frans Pop <elendil@planet.nl>
Acked-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/thermal/thermal_sys.c