thinkpad-acpi: hotkey poll fixes
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 12 Sep 2009 18:22:14 +0000 (15:22 -0300)
committerLen Brown <len.brown@intel.com>
Sat, 19 Sep 2009 04:53:04 +0000 (00:53 -0400)
commitdb25f16d1dcce8de12f2f5daf884cda02196b28c
tree12abde8e97c57de182d9a0b8f6689664546d09f6
parente675abafcc0df38125e6e94a9ba91c92fe774f52
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>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/thinkpad_acpi.c