Re: [PATCH] remove BKL from drivers' release functions

David C. Hansen
2001-11-28T23:43:33Z

Andrew Morton wrote:

>"David C. Hansen" wrote:
>
>>+static spinlock_t user_list_lock;
>>= SPIN_LOCK_UNLOCKED;
>>
Whoops. Here's another patch to throw on top of the first one.

--- linux-2.5.1-pre2-dirty/arch/i386/kernel/apm.c Wed Nov 28 15:37:59
2001
+++ linux/arch/i386/kernelapm.c Wed Nov 28 15:37:41 2001
@@ -387,7 +387,7 @@
static DECLARE_WAIT_QUEUE_HEAD(apm_waitqueue);
static DECLARE_WAIT_QUEUE_HEAD(apm_suspend_waitqueue);
static struct apm_user * user_list;
+static spinlock_t user_list_lock = SPIN_LOCK_UNLOCKED;
-static spinlock_t user_list_lock;

static char driver_version[] = "1.15"; /* no spaces */