thinkpad-acpi: hotkey poll fixes
commita9b96f04494d9d636a917e3d495544b19880ae05
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 4 Dec 2009 11:13:03 +0000 (4 09:13 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 4 Dec 2009 11:13:03 +0000 (4 09:13 -0200)
treecaeaa064c01c6e2433bf73803f1c51f02df43720
parentded1e6719987098cc9eb77dfe638b381df97bb21
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