thermal: Added Bang-bang thermal governor
authorPeter Feuerer <peter@piie.net>
Tue, 22 Jul 2014 15:37:13 +0000 (17:37 +0200)
committerZhang Rui <rui.zhang@intel.com>
Wed, 27 Aug 2014 07:45:58 +0000 (15:45 +0800)
commite4dbf98f7f169346f57296e173e883b7330076ab
tree9716c985db04ada091fbb35a9b93a9494e9b13e8
parent52addcf9d6669fa439387610bc65c92fa0980cef
thermal: Added Bang-bang thermal governor

The bang-bang thermal governor uses a hysteresis to switch abruptly on
or off a cooling device.  It is intended to control fans, which can
not be throttled but just switched on or off.
Bang-bang cannot be set as default governor as it is intended for
special devices only.  For those special devices the driver needs to
explicitely request it.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Andreas Mohr <andi@lisas.de>
Cc: Borislav Petkov <bp@suse.de>
Cc: Javi Merino <javi.merino@arm.com>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Peter Feuerer <peter@piie.net>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/Kconfig
drivers/thermal/Makefile
drivers/thermal/gov_bang_bang.c [new file with mode: 0644]
drivers/thermal/thermal_core.c
drivers/thermal/thermal_core.h