thinkpad-acpi: hotkey poll fixes
commit1fdd1c218ae248496e5d18c2fb396cc6f44905bd
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 10 Nov 2009 23:12:24 +0000 (10 21:12 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 10 Nov 2009 23:12:24 +0000 (10 21:12 -0200)
tree73be38d9afd875ef49e18b0e9f0335736abc60c3
parent188be973dafcd26b17045c435ad92872433c04ea
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