X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fwait.c;h=444ddbfaefc490839e2cf913cb688c7ebb9f0df9;hb=7d77ce8f67358c6b7708726f8fa230cd58d75b2c;hp=a1d57aeb7f7543fe2eeedb4aa8d8899f5abf3242;hpb=912b2539e1e062cec73e2e61448e507f7719bd08;p=linux-2.6-omap-h63xx.git diff --git a/kernel/wait.c b/kernel/wait.c index a1d57aeb7f7..444ddbfaefc 100644 --- a/kernel/wait.c +++ b/kernel/wait.c @@ -10,9 +10,13 @@ #include #include -struct lock_class_key waitqueue_lock_key; +void init_waitqueue_head(wait_queue_head_t *q) +{ + spin_lock_init(&q->lock); + INIT_LIST_HEAD(&q->task_list); +} -EXPORT_SYMBOL(waitqueue_lock_key); +EXPORT_SYMBOL(init_waitqueue_head); void fastcall add_wait_queue(wait_queue_head_t *q, wait_queue_t *wait) { @@ -57,7 +61,7 @@ EXPORT_SYMBOL(remove_wait_queue); * The spin_unlock() itself is semi-permeable and only protects * one way (it only protects stuff inside the critical region and * stops them from bleeding out - it would still allow subsequent - * loads to move into the the critical region). + * loads to move into the critical region). */ void fastcall prepare_to_wait(wait_queue_head_t *q, wait_queue_t *wait, int state)