Changeset 31d8e10 in mainline for kernel/generic/src/synch/waitq.c
- Timestamp:
- 2007-04-05T16:09:49Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 547fa39
- Parents:
- 879585a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/waitq.c
r879585a3 r31d8e10 87 87 waitq_t *wq; 88 88 bool do_wakeup = false; 89 DEADLOCK_PROBE_INIT(p_wqlock); 89 90 90 91 spinlock_lock(&threads_lock); … … 97 98 if (!spinlock_trylock(&wq->lock)) { 98 99 spinlock_unlock(&t->lock); 100 DEADLOCK_PROBE(p_wqlock, DEADLOCK_THRESHOLD); 99 101 goto grab_locks; /* avoid deadlock */ 100 102 } … … 129 131 bool do_wakeup = false; 130 132 ipl_t ipl; 133 DEADLOCK_PROBE_INIT(p_wqlock); 131 134 132 135 ipl = interrupts_disable(); … … 148 151 if (!spinlock_trylock(&wq->lock)) { 149 152 spinlock_unlock(&t->lock); 153 DEADLOCK_PROBE(p_wqlock, DEADLOCK_THRESHOLD); 150 154 goto grab_locks; /* avoid deadlock */ 151 155 }
Note:
See TracChangeset
for help on using the changeset viewer.