thinkpad-acpi: hotkey poll fixes
commite7a721f46e114fc00dbdee6a537c30328cfa7c3e
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 20 Sep 2009 18:24:47 +0000 (20 15:24 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 20 Sep 2009 18:24:47 +0000 (20 15:24 -0300)
tree05bde093da8c11df6d455f700ef3d5f891d35e4a
parent55e3d3e7083810ec268808b21200b5b7ebbe7830
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