]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/wait_queue.c
xnu-792.25.20.tar.gz
[apple/xnu.git] / osfmk / kern / wait_queue.c
index 8faa4013f76ae9cea270bcf4c89f6ee6ec217163..361cf796165e613a338e9de0d89706d55bfcce49 100644 (file)
@@ -1059,7 +1059,11 @@ wait_queue_wakeup64_all_locked(
        queue_t q = &wake_queue_head;
        kern_return_t res;
 
-       assert(wait_queue_held(wq));
+//     assert(wait_queue_held(wq));
+       if(!wq->wq_interlock.lock_data) {               /* (BRINGUP */
+               panic("wait_queue_wakeup64_all_locked: lock not held on %08X\n", wq);   /* (BRINGUP) */
+       }
+
        queue_init(q);
 
        /*
@@ -1111,6 +1115,9 @@ wait_queue_wakeup_all(
 
        s = splsched();
        wait_queue_lock(wq);
+       if(!wq->wq_interlock.lock_data) {               /* (BRINGUP */
+               panic("wait_queue_wakeup_all: we did not get the lock on %08X\n", wq);  /* (BRINGUP) */
+       }
        ret = wait_queue_wakeup64_all_locked(
                                wq, (event64_t)((uint32_t)event),
                                result, TRUE);