]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: ibm-acpi: implement fan watchdog command
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 24 Nov 2006 13:47:14 +0000 (11:47 -0200)
committerLen Brown <len.brown@intel.com>
Thu, 7 Dec 2006 06:38:44 +0000 (01:38 -0500)
commit29487d0ac5f71b63c66c692400fc57fc8c79a432
treed78d869332bdfa8a5859134114eb145eb41b5dd3
parent31ba437bc145074b668583cbea154db3b96b5230
ACPI: ibm-acpi: implement fan watchdog command

This patch implements a fan control safety watchdog, by request of the
authors of userspace fan control scripts.

When the watchdog timer expires, the equivalent action of a "fan enable"
command is executed.  The watchdog timer is reset at every reception of a
fan control command that could change the state of the fan itself.

This command is meant to be used by userspace fan control daemons, to make
sure the fan is never left set to an unsafe level because of userspace
problems.

Users of the X31/X40/X41 "speed" command are on their own, the current
implementation of "speed" is just too incomplete to be used safely,
anyway.  Better to never use it, and just use the "level" command instead.

The watchdog is programmed using echo "watchdog <number>" > fan, where
number is the number of seconds to wait before doing an "enable", and zero
disables the watchdog.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Documentation/ibm-acpi.txt
drivers/acpi/ibm_acpi.c