x86: Remove BKL from apm_32
authorThomas Gleixner <tglx@linutronix.de>
Fri, 9 Oct 2009 17:02:20 +0000 (19:02 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 14 Oct 2009 15:04:48 +0000 (17:04 +0200)
commit05d86412eab6a18cf57697474cc4f8fbfcd6936f
treecc80927fe5be3f3fd5959ebb97a06a96c20392cb
parentac06ea2cd06291e63951b51dd7c9a23e6a1f2683
x86: Remove BKL from apm_32

The lock/unlock kernel pair in do_open() got there with the BKL push
down and protects nothing. Remove it.

Replace the lock/unlock kernel in the ioctl code with a mutex to
protect standbys_pending and suspends_pending.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <20091010153349.365236337@linutronix.de>
arch/x86/kernel/apm_32.c