thinkpad-acpi: hotkey poll fixes
commitfc3d4eb212c0e9de9588d4e56ed8b992819f8147
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 20 Sep 2009 18:22:12 +0000 (20 15:22 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 20 Sep 2009 18:22:12 +0000 (20 15:22 -0300)
tree4e64acf1b28a4b717d4178b0f429e66c3534824b
parent5a86c52de0254d4ccde4ae8bb2fc1789e09cc679
thinkpad-acpi: hotkey poll fixes

Fix some locking, avoid exiting the kthread before kthread_stop() is
called on it, and clean up the hotkey poll routines a little bit.

Also, restore bits in the firmware mask after hotkey_source_mask is
changed.  Without this, we leave events disabled...

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
drivers/platform/x86/thinkpad_acpi.c