]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/wait_queue.c
xnu-792.22.5.tar.gz
[apple/xnu.git] / osfmk / kern / wait_queue.c
index 1c36d3036c7e6075d35f19f0b518163646e1b430..b5e9c2d1f58436103169bca740c5964a12d2408c 100644 (file)
@@ -1065,7 +1065,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);
 
        /*
@@ -1117,6 +1121,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);