diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2010-02-25 21:29:00 -0300 |
---|---|---|
committer | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2010-02-25 21:37:23 -0300 |
commit | 7f0cf712a74fcc3ad21f0bde95bd32c2f2cc3888 (patch) | |
tree | 27ff0f6a3fcb501cff825a967d9fb7592dc81d47 /lib/locking-selftest-mutex.h | |
parent | b589ea4c44170d3f7a845684e2d1b3b9571663af (diff) | |
download | op-kernel-dev-7f0cf712a74fcc3ad21f0bde95bd32c2f2cc3888.zip op-kernel-dev-7f0cf712a74fcc3ad21f0bde95bd32c2f2cc3888.tar.gz |
thinkpad-acpi: make driver events work in NVRAM poll mode
Thadeu Lima de Souza Cascardo reports this:
Brightness notification does not work until the user writes to
hotkey_mask attribute. That's because the polling thread will only run
if hotkey_user_mask is set and someone is reading the input device or
if hotkey_driver_mask is set. In this second case, this condition is
not tested after the mask is changed, because the brightness and
volume drivers are started after the hotkey drivers.
Fix tpacpi_hotkey_driver_mask_set() to call hotkey_poll_setup(), so
that the poller kthread will be started when needed.
Reported-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Tested-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: stable@kernel.org
Diffstat (limited to 'lib/locking-selftest-mutex.h')
0 files changed, 0 insertions, 0 deletions