]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/blobdiff - kernel/wait.c
Fix bug
[can-eth-gw-linux.git] / kernel / wait.c
index 26fa7797f90f9812ce9454fb59619b396c82f499..6698e0c04ead068279a7ed6a106a794b4ee1a8e6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Generic waiting primitives.
  *
- * (C) 2004 William Irwin, Oracle
+ * (C) 2004 Nadia Yvette Chambers, Oracle
  */
 #include <linux/init.h>
 #include <linux/export.h>
 #include <linux/wait.h>
 #include <linux/hash.h>
 
-void __init_waitqueue_head(wait_queue_head_t *q, struct lock_class_key *key)
+void __init_waitqueue_head(wait_queue_head_t *q, const char *name, struct lock_class_key *key)
 {
        spin_lock_init(&q->lock);
-       lockdep_set_class(&q->lock, key);
+       lockdep_set_class_and_name(&q->lock, key, name);
        INIT_LIST_HEAD(&q->task_list);
 }