Changeset 29e7cc7 in mainline for kernel/generic/src/synch/waitq.c
- Timestamp:
- 2025-04-18T15:14:10Z (3 months ago)
- Children:
- e77c3ed
- Parents:
- 800d188 (diff), 25fdb2d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/waitq.c
r800d188 r29e7cc7 70 70 void waitq_initialize(waitq_t *wq) 71 71 { 72 memsetb(wq, sizeof(*wq), 0); 73 irq_spinlock_initialize(&wq->lock, "wq.lock"); 74 list_initialize(&wq->sleepers); 72 *wq = WAITQ_INITIALIZER(*wq); 75 73 } 76 74 … … 81 79 void waitq_initialize_with_count(waitq_t *wq, int count) 82 80 { 83 waitq_initialize(wq); 84 wq->wakeup_balance = count; 81 *wq = WAITQ_INITIALIZER_WITH_COUNT(*wq, count); 85 82 } 86 83
Note:
See TracChangeset
for help on using the changeset viewer.