ACPI: thinkpad-acpi: rate-limit CMOS/EC unsynced error messages
commite80b84fd7e2156d202b7bf78ccb80095a50b5d25
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Mon, 17 Mar 2008 00:12:42 +0000 (16 21:12 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 21 Mar 2008 23:43:43 +0000 (21 20:43 -0300)
tree70a52ac31ceac9fa6fb3a8a1c20231d86a23de1e
parent011cb237e4a9df557e3e34d3709d3ad7348e3fb7
ACPI: thinkpad-acpi: rate-limit CMOS/EC unsynced error messages

If userspace applications mess with the CMOS NVRAM, or something causes
both the ACPI firmware and thinkpad-acpi to try to change the brightness at
the same time, it is possible to have the CMOS and EC registers for the
current brightness go out of sync.

Should that happen, thinkpad-acpi could be really obnoxious when using a
brightness_mode of 3 (both EC and CMOS).  Instead of complaining a massive
number of times, make sure to complain only once until EC and CMOS are back
in sync.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Joerg Platte <lists@naasa.net>
drivers/misc/thinkpad_acpi.c